New policykit/consolekit/hald problem(s)
Joe Marcus Clarke
marcus at marcuscom.com
Sun May 11 22:04:19 UTC 2008
On Sun, 2008-05-11 at 22:58 +0200, Aragon Gouveia wrote:
> | By Aragon Gouveia <aragon at phat.za.net>
> | [ 2008-05-11 22:42 +0200 ]
> > | By Joe Marcus Clarke <marcus at marcuscom.com>
> > | [ 2008-05-11 22:08 +0200 ]
> > > It appears you have a problem with your ATA controller. Hal isn't
> > > picking up any children on atapci0. What does atacontrol list report?
> >
> > # atacontrol list
> > atacontrol: ioctl(IOCATADEVICES): Device not configured
> >
> > The system has an ICH9 controller and a Marvell 88SX6101 controller onboard.
> > The optical drive is connected to the Marvell controller (PATA).
>
> I think I see what the problem is in the atacontrol utility. It assumes ata
> channels start from zero, but that is not the case for my system which
> starts from 2.
>
> if (!strcmp(argv[1], "list") && argc == 2) {
> int maxchannel;
>
> if (ioctl(fd, IOCATAGMAXCHANNEL, &maxchannel) < 0)
> err(1, "ioctl(IOCATAGMAXCHANNEL)");
> for (channel = 0; channel < maxchannel; channel++)
> info_print(fd, channel, 1);
> exit(EX_OK);
> }
>
> I edited the for loop to initialise channel to 2 and the output looks more
> sane now:
>
> # atacontrol list
> ATA channel 2:
> Master: acd0 <LITE-ON DVDRW SOHW-1653S/CS0T> ATA/ATAPI revision 5
> Slave: no device present
> ATA channel 3:
> Master: ad6 <ST3750330AS/SD15> Serial ATA II
> Slave: no device present
> ATA channel 4:
> Master: ad8 <ST3750330AS/SD15> Serial ATA II
> Slave: no device present
> ATA channel 5:
> Master: no device present
> Slave: no device present
> ATA channel 6:
> Master: no device present
> Slave: no device present
> ATA channel 7:
> Master: no device present
> Slave: no device present
> ATA channel 8:
> Master: no device present
> Slave: no device present
> atacontrol: ioctl(IOCATADEVICES): Device not configured
>
>
> However, this hasn't fixed hald. Maybe it is making a similar mistake as
> atacontrol?
I think you need to bring this up with Soren (sos@). If atacontrol is
making this assumption, it's probably doing so for a reason. Maybe
there's a deeper kernel bug that needs to be fixed.
Joe
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20080511/ad4d3970/attachment.pgp
More information about the freebsd-gnome
mailing list