Re: [gentoo-ppc-user] pbbuttonsd question
Well, you don't really have to modiffy it by hand, it is a simple patch to the kernel I tested it and it works perfectly. yours, kos Eric Robertson wrote: hmmm... I dont think I am up to modifying my kernel source by hand just yet (if I read Ben's response correctly). Thanks for the solution though. It's good to know a solution is out there. Konstantin V. Gavrilenko wrote: Here is an answer from Ben, I still have to test it myself. Benjamin Herrenschmidt wrote: On Tue, 2006-05-30 at 21:09 +0100, Konstantin V. Gavrilenko wrote: SNIP Does this help ? Ben. -- From: Linux Kernel Mailing List linux-kernel@vger.kernel.org To: git-commits-head@vger.kernel.org Subject: [PATCH] powermac: Fix i2c on keywest based chips Date: Sun, 23 Apr 2006 17:11:14 GMT commit 60162e498e220d1f03bbee5bac0a9ddd6de60ae7 tree 8cbcbea6060eb2b9f7d39784385efdfc6e947b52 parent 28897731318dc8f63f683eed9091e446916ad706 author Benjamin Herrenschmidt [EMAIL PROTECTED] Tue, 18 Apr 2006 14:11:53 +1000 committer Paul Mackerras [EMAIL PROTECTED] Fri, 21 Apr 2006 22:29:46 +1000 [PATCH] powermac: Fix i2c on keywest based chips The new i2c implementation for PowerMac has a regression that causes the hardware to go out of state when probing non-existent devices. While fixing that, I also found fixed a couple of other corner cases. This fixes booting with a pbbuttons version that scans the i2c bus for an LMU controller among others. Tested on a dual G5 with thermal control (which has heavy i2c activity) with no problem so far. Signed-off-by: Benjamin Herrenschmidt [EMAIL PROTECTED] Signed-off-by: Paul Mackerras [EMAIL PROTECTED] arch/powerpc/platforms/powermac/low_i2c.c | 78 -- Respectfully, Konstantin V. Gavrilenko Managing Director Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com -- gentoo-ppc-user@gentoo.org mailing list
Re: [gentoo-ppc-user] pbbuttonsd question
Eric Robertson wrote: The result, my syslog is filling up w/ hundreds of lines detailing the i2c devices loaded the keyboard now lights up. When I boot back to the old kernel (the one without the debug_core debug_bus enabled) it stops working. lcd brightness works on both of them works on both. I ran a diff on the 2 .config files and verified that there were no changes other than what I just documented. my confusion has just increased Eric hmm, amazingly it works... Guess it is time to write to benjamin for an answer regarding what has changed to cause such a drastic result. Benjamin Herrenschmidt [EMAIL PROTECTED] -- Respectfully, Konstantin V. Gavrilenko Managing Director Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com -- gentoo-ppc-user@gentoo.org mailing list
Re: [gentoo-ppc-user] pbbuttonsd question
I have the same problem as you do, but in my case the ambient lights sensor doesn't work either. This happened after a switch from 2.6.15 to 2.6.16. I think the reasons might be in the I2C module that has been changed. In the 2.6.15 it was I2C_KEYWEST while in 2.6.16 it is named I2C_POWERMAC. Wrote an email to the author of the pbbuttons but had no reply. It would be great if we can sort out the problem in this list. p.s. machine : PowerBook5,4 motherboard : PowerBook5,4 MacRISC3 Power Macintosh detected as : 287 (PowerBook G4 15) pbbuttonsd, version 0.7.5 Linux maca 2.6.16-gentoo-r7 yours, kos -- Respectfully, Konstantin V. Gavrilenko Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com Eric Robertson wrote: I am running gentoo on a 15 aluminum powerbook. I am using the 2.6.16.r5 kernel and pbbuttonsd 0.7.4. I have been going over the man pages online documentation but cannot figure out how to get the illuminated keyboard working. pbbuttonsd does not error during load. The pbbuttonsd.conf file has not been modified from the default at the moment. i2c-dev is compiled into the kernel, not as a module. The LCD brightness buttons work but the keyboard light buttons dont. The ambient light sensor appears to working because the lcd automatically adjusts brightness when I turn out the lights. There are 8 i2c devices in /dev. What dependencies does i2c have? what dependencies does pbbuttonsd have? Thanks for your input... Eric Robertson -- gentoo-ppc-user@gentoo.org mailing list
Re: [gentoo-user] No /dev/sda1 with Klingston usb disk. Wrong lsusb output.
Frédéric Grosshans wrote: Le lundi 17 avril 2006 à 18:51 +0100, Konstantin V. Gavrilenko a écrit : On the example of the SD card reader, when you insert the card, /dev/sdb appears, but not the actual partition (/dev/sdb1) So you have to do fdisk /dev/sdb, then quit, then the /dev/sdb1 is magically available for mounting. I had this problem before, but it's not the case today :-( fdisk has no access to the /dev/sda device. Think it is an issue with udev. No, it's a problem with your kernel. You need to check the option File systems --- Partition Types --- [*] PC BIOS (MSDOS partition tables) support in make menuconfig and you won't need to fdisk to make /dev/sdb1 appear. Fred Thanks, I'll check it out yours, kos -- Respectfully, Konstantin V. Gavrilenko Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] No /dev/sda1 with Klingston usb disk. Wrong lsusb output.
I noticed similar behavior on the externally connected usb storage devices. On the example of the SD card reader, when you insert the card, /dev/sdb appears, but not the actual partition (/dev/sdb1) So you have to do fdisk /dev/sdb, then quit, then the /dev/sdb1 is magically available for mounting. Think it is an issue with udev. kos -- Respectfully, Konstantin V. Gavrilenko Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com Petr Kocmid wrote: On Monday 17 April 2006 17:49, Frédéric Grosshans wrote: Le lundi 17 avril 2006 à 17:26 +0200, Petr Kocmid a écrit : What fdisk -l /dev/sda says when you plug it in? You should get something as: [snip] I don't get anything :-( sanduleak ~ # fdisk -l /dev/sda sanduleak ~ # This is (sadly) consistent with the lack of /dev/sda1 device. So be it, let's suppose there is something wrong with your udev config. Please: 1. start udevmonitor as root 2. plug the disk in 3. post all reported events here With that, we can distinguish between some kernel driver issue and wrong udev config issue. An example of mine (plug and unplug): udevmonitor prints the received event from the kernel [UEVENT] and the event which udev sends out after rule processing [UDEV] UEVENT[1145286498.800967] add@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1 UEVENT[1145286498.801510] add@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0 UEVENT[1145286498.801871] add@/class/scsi_host/host1 UEVENT[1145286498.801903] add@/class/usb_device/usbdev2.11 UDEV [1145286499.117809] add@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1 UDEV [1145286500.144200] add@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0 UDEV [1145286500.189516] add@/class/scsi_host/host1 UDEV [1145286500.260429] add@/class/usb_device/usbdev2.11 UEVENT[1145286503.802883] add@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0/host1/target1:0:0/1:0:0:0 UEVENT[1145286505.816923] add@/block/sda UEVENT[1145286505.820912] add@/block/sda/sda1 UEVENT[1145286505.821358] add@/class/scsi_device/1:0:0:0 UDEV [1145286505.948708] add@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0/host1/target1:0:0/1:0:0:0 UDEV [1145286506.029988] add@/class/scsi_device/1:0:0:0 UDEV [1145286506.053558] add@/block/sda UDEV [1145286506.172919] add@/block/sda/sda1 UEVENT[1145287609.215202] remove@/class/scsi_device/1:0:0:0 UEVENT[1145287609.215715] remove@/block/sda/sda1 UEVENT[1145287609.216008] remove@/block/sda UEVENT[1145287609.216298] remove@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0/host1/target1:0:0/1:0:0:0 UEVENT[1145287609.216670] remove@/class/scsi_host/host1 UEVENT[1145287609.216960] remove@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0 UEVENT[1145287609.217293] remove@/class/usb_device/usbdev2.11 UEVENT[1145287609.217586] remove@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1 UDEV [1145287609.242609] remove@/class/scsi_device/1:0:0:0 UDEV [1145287609.475791] remove@/block/sda/sda1 UDEV [1145287609.527505] remove@/block/sda UDEV [1145287609.559272] remove@/class/usb_device/usbdev2.11 UDEV [1145287609.708917] remove@/class/scsi_host/host1 UDEV [1145287609.714372] remove@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0/host1/target1:0:0/1:0:0:0 UDEV [1145287609.799645] remove@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1/2-4.1:1.0 UDEV [1145287609.86] remove@/devices/pci:00/:00:14.4/:02:0e.2/usb2/2-4/2-4.1 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] OpenOffice 2.0 + NFS = hang
Solved the problem. Apparently you need to disable file locking by commenting out the following lines: # file locking now enabled by default #SAL_ENABLE_FILE_LOCKING=1 #export SAL_ENABLE_FILE_LOCKING in /usr/lib/openoffice/program/soffice as simple as it gets. yours, kos -- Respectfully, Konstantin V. Gavrilenko Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com Konstantin V. Gavrilenko wrote: Hi list, I have emerge OpenOffice 2.0 recently and noticed a strange problem, that whenever I try to access the file located on the nfs, the OO2 hangs. The rest of the applications are working fine with nfs, and such problem never happened with OpenOffice 1.x The problem happens on two gentoo boxes and one box running debian. the shares are exported on NFS server as following #/etc/exports /mnt/Docs 192.168.69.0/24(rw,sync,all_squash,anonuid=2000,anongid=2000) the clients mount nfs shares as following #/etc/fstab nfserver:/mnt/Docs /mnt/Docs nfs defaults,hard,intr,rsize=8192,wsize=8192 0 0 thanks in advance for any help. yours, kos -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] OpenOffice 2.0 + NFS = hang
tried it, but it did not solve the issue on my box. I guess, i'll stick to the commenting out the file_locking yours, kos -- Respectfully, Konstantin V. Gavrilenko Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com Bruno Lustosa wrote: On 10/27/05, *Konstantin V. Gavrilenko* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Solved the problem. Apparently you need to disable file locking by commenting out the following lines: # file locking now enabled by default #SAL_ENABLE_FILE_LOCKING=1 #export SAL_ENABLE_FILE_LOCKING in /usr/lib/openoffice/program/soffice I think I solved it even better. I noticed that when trying to open an OO file in nfs, I'd get these errors on syslog: Oct 27 11:01:27 ti03 lockd: cannot monitor 192.168.7.1 http://192.168.7.1 Oct 27 11:01:27 ti03 lockd: failed to monitor 192.168.7.1 http://192.168.7.1 Sure enough, rpcinfo -p (on the client) gave me this: ti03 ~ # rpcinfo -p program vers proto port 102 tcp111 portmapper 102 udp111 portmapper 3910022 tcp689 sgi_fam 1000211 udp 36350 nlockmgr 1000213 udp 36350 nlockmgr 1000214 udp 36350 nlockmgr 1000211 tcp 32792 nlockmgr 1000213 tcp 32792 nlockmgr 1000214 tcp 32792 nlockmgr It seems rpc.statd isn't running, because status monitor doesn't show on the list. Just starting /etc/init.d/nfs solved the problem. Now OO opens nfs files without a problem, and rpcinfo -p shows some other services started: ti03 ~ # rpcinfo -p program vers proto port 102 tcp111 portmapper 102 udp111 portmapper 3910022 tcp689 sgi_fam 1000211 udp 36350 nlockmgr 1000213 udp 36350 nlockmgr 1000214 udp 36350 nlockmgr 1000211 tcp 32792 nlockmgr 1000213 tcp 32792 nlockmgr 1000214 tcp 32792 nlockmgr 1000241 udp 36351 status 1000241 tcp 32793 status 132 udp 2049 nfs 133 udp 2049 nfs 132 tcp 2049 nfs 133 tcp 2049 nfs 151 udp727 mountd 151 tcp730 mountd 152 udp727 mountd 152 tcp730 mountd 153 udp727 mountd 153 tcp730 mountd -- Bruno Lustosa, aka Lofofora | Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Network Administrator/Web Developper | ICQ: 1406477 Rio de Janeiro - Brazil | -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] OpenOffice 2.0 + NFS = hang
As discussed in this thread http://www.openoffice.org/issues/show_bug.cgi?id=54586 QTE ++ 1 On certain Linux machines, file locking is known to fail due to the NFS lock demon not running. 2 On certain other Linux machines, it appears that file locking fails due to some other, not yet analyzed reason. + UNQTE I guess my machines fall into the second category. yours, kos Billy Holmes wrote: Konstantin V. Gavrilenko wrote: Apparently you need to disable file locking by commenting out the following lines: either that or run lockd... -- Respectfully, Konstantin V. Gavrilenko Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com -- gentoo-user@gentoo.org mailing list
[gentoo-user] OpenOffice 2.0 + NFS = hang
Hi list, I have emerge OpenOffice 2.0 recently and noticed a strange problem, that whenever I try to access the file located on the nfs, the OO2 hangs. The rest of the applications are working fine with nfs, and such problem never happened with OpenOffice 1.x The problem happens on two gentoo boxes and one box running debian. the shares are exported on NFS server as following #/etc/exports /mnt/Docs 192.168.69.0/24(rw,sync,all_squash,anonuid=2000,anongid=2000) the clients mount nfs shares as following #/etc/fstab nfserver:/mnt/Docs /mnt/Docs nfs defaults,hard,intr,rsize=8192,wsize=8192 0 0 thanks in advance for any help. yours, kos -- Respectfully, Konstantin V. Gavrilenko Arhont Ltd - Information Security web:http://www.arhont.com http://www.wi-foo.com e-mail: [EMAIL PROTECTED] tel: +44 (0) 870 44 31337 fax: +44 (0) 117 969 0141 PGP: Key ID - 0xE81824F4 PGP: Server - keyserver.pgp.com -- gentoo-user@gentoo.org mailing list