Fixed backlight but won't start after sleep

Asked by Jake Morgan

I am very new to all of this but I have a Gateway NV7802u laptop running Windows 64bit and Ununtu 12.10. After using the windows installer to install Ubuntu there was no backlight so I found a fix changing /etc/rc.local adding /usr/bin/setpci -s 00:02.0 F4.B=80. This fixed the problem but anytime it goes in sleep mode it seems to lose the setting and I have to open a terminal to run sudo /etc/rc.local. Does anyone know how I can work get this fixed.

Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu pm-utils Edit question
Assignee:
No assignee Edit question
Solved by:
Jake Morgan
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :
#1

You can add a script to /etc/pm/sleep.d/.
In this German guide, you can see an example with a different command: http://wiki.ubuntuusers.de/pm-utils#Eigene-Hooks-erstellen . Make sure the file is executable.

Revision history for this message
Jake Morgan (nism240sx) said :
#2

I'm sorry like I said I am very new to this and do not understand what you are talking about. I'm more of a step by step guy. I tried to play around with that but I don't know german lol.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#3

Execute the command below to create the file

gksudo gedit /etc/pm/sleep.d/11_setpci

Inside the file write below script
____________________________________________________________________
#!/bin/sh
# Execute this command after resume-suspend to have the desired back-light result
case "${1}" in
    resume|thaw)

/usr/bin/setpci -s 00:02.0 F4.B=80

;;
esac
____________________________________________________________________

save the file and make it executable .. with the command below

sudo chmod +x /etc/pm/sleep.d/11_setpci

Now try again..

Thanks

Revision history for this message
Jake Morgan (nism240sx) said :
#4

Thank you that fixed it!!! NikTh you're the man!

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#5

Glad !

Please re-edit the question and mark the answer that solved your question-problem (for future - help -others)

Thanks