-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Reinsch wrote:

>>>Yes, nvram (which is already included in the kernel). The RPM will
>>>add the required lines to your /etc/modules.conf to make it work
>>>with devfs.
>>
>>Wha about permissions on the nvram device? Or should this be run as
>>root(but then launching user-space programs as root for mail etc)?
>
>
> No, I'm running at under my user. As read access to this device seems to
> be enough to run tpb, I changed to group of the device to users and gave
> the group read permissons. But I don't think this is ok for everyone.
>
> Maybe adding a new group thinkpad is the best sollution (that's how the
> debian package does it)? Then every user who is in this group can access
> the thinkpad specific stuff.

Well, that would make life easier (from a packaging point of view) on
tpctl and the thinkpad drivers, but I think normally pam_console (ie
/etc/security/console.perms) is better, but I do not see any easy way
for these kinds of entries to be added. I do not like adding extra
groups, since it usually reduces the number of NFS groups I can use.
Also, you would not want a user on another thinkpad to be able to do
weird things on your machine while you are logged in locally (like make
it suspend with tpctl). I think pam_console is better.

I have not had any luck with /etc/devfs/conf.d files to set this up
automagically, and I do not think /etc/security/console.perms has an
easy method to add entries per-package.

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

>
>
>>Also, should there not be some way of starting it as a daemon
>>automatically (/etc/X11/xinit.d/ or /etc/rc.d/init.d ?).
>
>
> Well, I use gnome session control to start it using:
>  /usr/bin/tpb --config=/home/mr/.tpb/tpbrc
>

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

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.

It would be even cooler if the installer would detect Thinkpads and
install tpb and tpctl by default. But we still need the thinkpad drivers
in-kernel for tpctl.

> I don't know if you can just start it without X, but I don't think so?!
>

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).

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.

>
>>How about changing some of the defaults, such as:
>>OSDPOS  middle
>>OSDALIGN        center
>
>
> Yeah, I'm using that as well:
>
> OSDFONT       -adobe-helvetica-bold-r-normal-*-*-140-*-*-p-*-iso8859-15

How about
OSDFONT -adobe-helvetica-bold-r-normal-*-*-240-*-*-p-*-iso8859-15
or
OSDFONT -adobe-helvetica-bold-r-normal-*-*-180-*-*-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 did not need to specify the font on 9.0, but it looks better now ...

> OSDCOLOR      Green
> OSDVERTICAL   45
That is better ...

> OSDHORIZONTAL 0
> OSDPOS        bottom

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

> OSDALIGN      center
>
> (I also have to specify the font, otherwise I get an error message and
> no OSD).
>
> Hmmm... are you going to change this or shall I send you a new spec?
>

I think upload a new package for Lenny (I do not know how he got it, did
you upload to incoming?). Otherwise, if you are happy with these changes
I will commit to contrib tomorrow with whatever else I can get working.
Are there any other thinkpad users on this list? I guess I may also look
for Mandrake users on the thinkpad list to find more victims ...

Anyway, I now have:

[root@bgmilne-thinkpad bgmilne]# grep -v  '^#' /etc/tpbrc |grep -v '^$'
APM ON
OSDFONT -adobe-helvetica-bold-r-normal-*-*-240-*-*-p-*-iso8859-15
OSDCOLOR        Green
OSDSHADOW       5
OSDVERTICAL     45
OSDPOS  middle
OSDALIGN        center

Any comment on APM? I think it would be useful, and it seems fine on my
600X in 9.0. I assume the APM events will still be accessible via nvram?
Or does this thing need ACPI support?


- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+UoMNrJK6UGDSBKcRAlvDAKCaf6tQTOUW0oDzDLgChYKWjo3isACdExFH
wCs5XLXAX1KlLMf+ufPM8XM=
=6RbJ
-----END PGP SIGNATURE-----


Reply via email to