Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using ubuntu 11.10 on Thinkpad. Every time the system starts, I have to run the following scripts with 'sudo' to configure the device manually.

#setting trackpoint
TrackpointDevicePath="/sys/devices/platform/i8042/serio4/serio5/"

#set speed
echo 255 > ${TrackpointDevicePath}speed

#set sensitivity
echo 255 > ${TrackpointDevicePath}sensitivity

#adust screen brightness
echo 0 > /sys/class/backlight/acpi_video0/brightness

#disable touchpad
synclient TouchpadOff=1

I tried to put these commands in /etc/rc.local. But it didn't work because it needs root to run the commands. Anyone can help me to run the privileged commands at system startup automatically? Or is there any convenient gui tool for device setting which can remember the settings?

share|improve this question
add comment

1 Answer 1

You should use /etc/sysctl.conf instead.

(Or /etc/sysctl.d/ directory to put config files there)

But you should slightly change the syntax of your configuration.

share|improve this answer
    
If you need detailed instructions, please, let me know. –  PocketSam Nov 6 '11 at 17:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.