View previous topic :: View next topic |
Author |
Message |
GreenPenInc Tux's lil' helper
Joined: 26 Jan 2005 Posts: 122
|
Posted: Tue Jun 14, 2005 3:19 pm Post subject: [solved!] Inspiron 8600 lid button |
|
|
Hello,
I recently reinstalled Gentoo on my Dell Inspiron 8600. The first time I installed it I added code to handle the lid button to the default.sh script for acpi events. I remember it worked well at first, then that same day it stopped working and never worked again. When I reinstalled I did the same thing and the same thing happened: it used to turn off the monitor when the lid was closed but now it doesn't. I tell it to do "xset dpms force off" (or "on" when the lid opens). In /var/log/acpid it says 'xset: unable to open display ""'. Any ideas? _________________ _-(GPI)-_
Last edited by GreenPenInc on Tue Jun 21, 2005 5:11 pm; edited 1 time in total |
|
Back to top |
|
|
alterself.com Apprentice
Joined: 13 Nov 2003 Posts: 175 Location: Iowa
|
Posted: Wed Jun 15, 2005 3:45 pm Post subject: |
|
|
wow, someone else that is crazy enough to run gentoo on their Dell i8600 huh? cool.
i have started http://8600.alterself.com as intended to be targed to people trying to run *nix on their Dell i8600's.
sorry i dont have a specific answer, as i ahve not been able to get ANY of the power options to work on my laptop...just happy it works most of the time |
|
Back to top |
|
|
GreenPenInc Tux's lil' helper
Joined: 26 Jan 2005 Posts: 122
|
Posted: Fri Jun 17, 2005 6:29 pm Post subject: |
|
|
I've changed the line to read
Code: | /usr/bin/xset -display :0.0 dpms force off |
Now I get a specific error message:
Code: | Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
/usr/bin/xset: unable to open display ":0.0"
|
Anyone know why it doesn't know the protocol? _________________ _-(GPI)-_ |
|
Back to top |
|
|
mbobak Tux's lil' helper
Joined: 24 Feb 2003 Posts: 106 Location: Ann Arbor, MI
|
Posted: Fri Jun 17, 2005 8:19 pm Post subject: Host-based security? |
|
|
The earlier error shown:
Code: | 'xset: unable to open display ""' |
Means you have not set your display variable. If everything is running locally, on your laptop, set it to ":0.0". Otherwise prepend that with a valid IP address or hostname.
This error:
Code: | Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
/usr/bin/xset: unable to open display ":0.0" |
Is probably due to host based security. What does:
return?
Also, try:
and see if that doesn't solve your problem.
Hope that helps,
-Mark[/code] |
|
Back to top |
|
|
GreenPenInc Tux's lil' helper
Joined: 26 Jan 2005 Posts: 122
|
Posted: Fri Jun 17, 2005 8:41 pm Post subject: |
|
|
Hi Mark,
Here is the output of xhost:
Code: | access control enabled, only authorized clients can connect
INET:localhost |
Performing "xhost +localhost" did not solve the problem; it still gives the same error message as before.
After reading "man xhost", I found that doing "xhost +" solves the problem, since it just disables access protection. However, obviously, this is not a good permanent solution! It'll do for now, but I'd be appreciative if someone could show me the real solution. _________________ _-(GPI)-_ |
|
Back to top |
|
|
GreenPenInc Tux's lil' helper
Joined: 26 Jan 2005 Posts: 122
|
Posted: Tue Jun 21, 2005 5:08 pm Post subject: |
|
|
Got it! The solution is to add
to my ~/.xinitrc file. It's more secure than adding just xhost +, and it works every time I start up X. _________________ _-(GPI)-_ |
|
Back to top |
|
|
|