Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved!] Inspiron 8600 lid button
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
GreenPenInc
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jan 2005
Posts: 122

PostPosted: Tue Jun 14, 2005 3:19 pm    Post subject: [solved!] Inspiron 8600 lid button Reply with quote

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
View user's profile Send private message
alterself.com
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 175
Location: Iowa

PostPosted: Wed Jun 15, 2005 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
GreenPenInc
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jan 2005
Posts: 122

PostPosted: Fri Jun 17, 2005 6:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
mbobak
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2003
Posts: 106
Location: Ann Arbor, MI

PostPosted: Fri Jun 17, 2005 8:19 pm    Post subject: Host-based security? Reply with quote

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:
Code:
xhost

return?

Also, try:
Code:
xhost +localhost

and see if that doesn't solve your problem.

Hope that helps,

-Mark[/code]
Back to top
View user's profile Send private message
GreenPenInc
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jan 2005
Posts: 122

PostPosted: Fri Jun 17, 2005 8:41 pm    Post subject: Reply with quote

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. :wink:
_________________
_-(GPI)-_
Back to top
View user's profile Send private message
GreenPenInc
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jan 2005
Posts: 122

PostPosted: Tue Jun 21, 2005 5:08 pm    Post subject: Reply with quote

Got it! The solution is to add

Code:
xhost +local:


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum