Hi!

On Tue, 18 Feb 2003 21:01:34 +0200
Buchan Milne <[EMAIL PROTECTED]> wrote:

> I guess we could mangle console.perms in the %post and %preun?

Hmmm.. adding:

# for tpb
<console> 0600 /dev/misc/nvram 0600 root 

the same way we already modify the /etc/modules.conf is working for me.

> Ideally the user should not need to do this. I just wrote a minimal
> script in /etc/X11/xinit.d/tpb which works ok:
> 
> #!/bin/sh
> 
> [ -x `which tpb` -a -r /dev/nvram ] && tpb -d
> 
> # tpb ends here

OK, nice idea... but I would use /usr/bin/tpb instead of `which tpb`
(avoid possible security problem and faster):

[ -x /usr/bin/tpb -a -r /dev/nvram ] && /usr/bin/tpb -d

> It should not be necessary (for launching from the script) to point it
> at a specific config file, since it reads $HOME/.tpbrc by default.

You're right, I should have read the man page... :-)

> No, so we will not put it in /etc/profile.d. It may start, but will
> not be of use, and may mess people around. I just do not know about
> multiple X sessions (assuming the *fast user switching* feature gets
> implemented, but maybe it will include some way of running script when
> users change).

Well, I already do this "fast user switching" sometimes using gdm's
feature to login several times. The switching is done by switching the
console.

tpb will currently only be launched for the first user who logged in on
a console - but this is OK for me, I can change the permission stuff in
console.perms if I want it on every console...

> I thought it might be a problem once the user logs out, but that seems
> ok. It would be nice to be able to have it at kdm/gdm, but I think
> launcing it at user login is good enough.

I think so, too...

> > OSDFONT      
> > -adobe-helvetica-bold-r-normal-*-*-140-*-*-p-*-iso8859-15
> Maybe 240 would be too big at lower res, but IMHO 140 is way too small
> to be easily noticed at 1024*768.

I'm running at 1024x768 :) - but 180 is also OK.

> > OSDHORIZONTAL 0
> > OSDPOS        bottom
> but I prefer middle, but either will do, most important is to get it
> working out-the-box ...

yes... it doesn't really matter to me, as long as I can change it...

> I think upload a new package for Lenny (I do not know how he got it,
> did you upload to incoming?). 

Yes, I simply dropped it into Mandrake's incoming.

> Otherwise, if you are happy with these changes I will commit to
> contrib tomorrow with whatever else I can get working.

Yes, looks nice.

> Any comment on APM? I think it would be useful, and it seems fine on
> my 600X in 9.0.

It's also working on my T20 - but maybe it is better to turn it off by
default to avoid possible problems?

> I assume the APM events will still be accessible via nvram?

The config says, tpb uses /proc/apm to determine those values...

> Or does this thing need ACPI support?

I'm currently not running ACPI.

-- 
  Michael Reinsch <[EMAIL PROTECTED]>                       http://mr.uue.org
------------------------------------------------------------------------

Reply via email to