[ltp] Re: more /dev/thinkpad
Tom Adelstein
linux-thinkpad@linux-thinkpad.org
Mon, 18 Jul 2005 16:06:10 -0500
bottom post
On Mon, 2005-07-18 at 19:55 +0300, David Tansey wrote:
> wiki.ubuntu.com -- is what i meant by ubuntu's wiki
>
> On Mon, 2005-07-18 at 11:08 -0500, Tom Adelstein wrote:
> > Bottom posted
> >
> > On Mon, 2005-07-18 at 18:07 +0300, David Tansey wrote:
> > > Tom,
> > >
> > > Well, keep me updated. I'm using hoary as well. I thought I wrote out
> > > all my steps a couple days ago. After doing that I could modprobe it no
> > > problem. And thinkpad-base put an entry into modprobe.d (or somwhere
> > > --i've removed it since then) so that the module is loaded at boottime.
> > >
> > > -David
> > >
> > > Here it is:
> > >
> > > Ubuntu has a package called thinkpad-source. You have to install that
> > > along with thinkpad-base and tpctl (and tpb if you want it.)
> > >
> > > You also need the right linux-headers package. for me it is
> > > linux-headers-2.6.10-5-686 -- you can apt-cache this.
> > >
> > > Then go to /usr/src/ and tar -xzf thinkpad.tar.gz
> > >
> > > cd go the modules/thinkpad/2.6/drivers
> > > make
> > > sudo make install
> > >
> > > and it works.
> > >
> > > the problem is that ubuntu uses acpi (which works largely for me) and
> > > they say configure-thinkpad is based on APM so some features are
> > > disabled. but it does let me switch to external monitor and back, which
> > > might be just the thing for me for my external monitor setup.
> > >
> > > good luck all.
> > >
> > > -david
> >
> >
> > > Mon, 2005-07-18 at 08:46 -0500, Tom Adelstein wrote:
> > > > On Mon, 2005-07-18 at 16:00 +0300, David Tansey wrote:
> > > > > Tom,
> > > > >
> > > > > If I remember correctly, I tar -xzf'd the thinkpad-source.tgz and then
> > > > > in the end did a "sudo make install" and then sudo modprobe thinkpad
> > > > > worked for me.
> > > > >
> > > >
> > > > David,
> > > >
> > > > I did the same. It should work. I'll let you know what I find.
> > > >
> > > >
> > >
> >
> > Dave,
> >
> > Thanks again. I did all of the steps you listed. I got the information
> > from google searches and from a number of howto's and documents,
> > postings on mailings lists, etc.
> >
> > The T21 doesn't work with acpi, so I disabled it and enabled apm. I can
> > do apm commands and those work fine.
> >
> > tpctl, tpb etc. work fine from the command line. In fact, it makes my
> > Thinkpad work nicely. I can control all the buttons and function keys I
> > have tried. I'm tweak everything with some other tools I found for the
> > backlight and the hard drive motor later.
> >
> > I'm simply attempting to enable the GUI - configure-thinkpad (gnome).
> >
> > I got it to build by adding glade and related packages because it needed
> > a library libgnomeui 2.0 and even after installing it from source, it
> > wasn't in the correct location. Adding glade made configure-thinkpad
> > build.
> >
> > It's also on the menu and starts up nicely - then gives me a missing
> > device. /dev/thinkpad.
> >
> > I tried this in fedora and got it to work - but only with the 2.6.9
> > kernel. configure-thinkpad gave me the same dumb message when I did the
> > upgrades. I read something about the upgrade kernels not working
> > correctly.
> >
> > If I can figure out this device problem, I'll write up a howto and
> > publish it.
> >
> > I'm really surprised at the lack of troubleshooting documentation about
> > this subject. Plenty of howto's exist, but they are not working 100%.
> >
> >
> >
> >
>
David,
It's all working now with a minor exception. I went back through each
step and found an error when I did ran make - something about the 2.6.10
kernel. When I ran sudo make install it ran again and when I
checked, /dev/thinkpad finally arrived. sudo modprobe thinkpad ran
without a hitch.
Now, I have a permissions problem. It wants me to run it as root.
I did a chmod on the device but it went back to the old permissions
after I rebooted to test my /etc/module.
I would imagine the that /etc/udev/permissions.d/50-udev.permissions
needs something like this added to misc
nvram:root:users:0660
thinkpad:root:users:0660
and
/etc/group needs an entry something like this users:x:100:username
Anyway, that's how we do it in Red Hat.
Any suggestions for the permissions issue?
Other than that, I think we can collaborate on the howto.
If you want, I'll write the first draft and send it to you.
Thanks,
Tom