Archives
Admin / Logout

Adam Merrifield

a picture of me
I am a theme developer, a coder and internet personality.

what i am

I am the owner and operator of seyDoggy Systems, a small theme, code and design outfit based in Kitchener, Ontario, Canada. We primarily develop web based technologies but have begun to dabble in the desktop realm.

what i do

I code like a fool. I design like a fool. I am happiest when I can split my time between the two (though I tire of Photoshop faster then I do Sublime Text 2 or Terminal), and somehow I have managed to etch out a living doing so.

Adjusting brightness on bootup

I got tired of having to enter the code from [the last post][] to adjust my Linux screen brightness so with a little inspiration from the internet I figured I’d pop a few aliases into my .bashrc

alias bri=’sudo setpci -s 00:02.0 F4.B=FF’
alias mid=’sudo setpci -s 00:02.0 F4.B=75′
alias dim=’sudo setpci -s 00:02.0 F4.B=25′

Now these settings will be available through terminal by typing `dim`, `mid` or `bri`. But that’s still more work then I want to do so I also picked my favorite value likely to be my default and I added it to my startup scripts. `vim /etc/init.d/mystartup.sh`

#!/bin/bash
# Adam’s Startup scripts

echo “Setting up customized environment…”

# adjust screen brightness
sudo setpci -s 00:02.0 F4.B=75

Then I set permissions to `chmod +x` and update my bootup scripts:

$ update-rc.d mystartup.sh defaults 99

Done.

[the last post]: http://adam.merrifield.ca/2012/06/01/ubuntu-support-for-intel-gma-3600/ “control brightness via terminal”

| Trackback

Comments are closed.

Powered by RapidWeaver, WP-Blog and WordPress 3.5.1