New policykit/consolekit/hald problem(s)

Aragon Gouveia aragon at phat.za.net
Sun May 11 20:58:59 UTC 2008


| 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?


Thanks,
Aragon



More information about the freebsd-gnome mailing list