[Debian-eeepc-devel] [eeepc-acpi-scripts PATCH] Allow X detection without an existing console/terminal session

Darren Salt linux at youmustbejoking.demon.co.uk
Fri Oct 24 14:17:30 UTC 2008


I demand that Damyan Ivanov may or may not have written...

> -=| Darren Salt, Fri, Oct 24, 2008 at 01:58:03PM +0100 |=-
>> <snip>
>> I forgot to mention that I find that the first method only succeeds if a
>> user is currently logged in via a console or X terminal.

> Or the display manager updates utmp.

> $ who|head -3
> dam      tty8         2008-10-07 16:19 (:0)
> dam      pts/1        2008-10-07 16:19 (:0.0)
> dam      pts/3        2008-10-07 09:53 (:0:S.0)

> The first line above is my gdm login. The second - a terminal (I have set
> the "use login shell" option).  The third - a screen session (ditto).

Hmm. Looks like slim isn't updating utmp here, or there's something odd about
my setup :-)

[snip]
-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Lobby friends, family, business, government.    WE'RE KILLING THE PLANET.

Borgish Telecom: "It's good to be assimilated."



More information about the Debian-eeepc-devel mailing list