pciehp udev remove

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Laptop: Hewlett-Packard F.0C HP EliteBook 8530w (the one where pciehp
works, no need for acpiphp)

when I remove a firewire card from the EC slot, syslog shows:

[22225.626360] pciehp 0000:00:1c.2:pcie04: Card not present on Slot(2)
[22227.630061] firewire_ohci: failed to write phy reg
[22237.690127] firewire_ohci 0000:04:00.0: PCI INT A disabled
[22237.690137] firewire_ohci: Removed fw-ohci device.

udev events fire at 22227 and 22237.  I am wondering why nothing fires
at the first one.

Given the last event takes 12 seconds, and I am not sure what happens
if I insert a card during that time, I want to hear beeps when I
should not insert a card, so I would like a udev rule with

 RUN="/usr/bin/screen -S pci_beep -d -m  /bin/bash -c 'for x in
{1..12}; do  /usr/bin/sox -n -d synth .05 sin 700 gain -16; /bin/sleep
.9; done'"

I would do it on the firewire remove event, but that also fires when
firewire devices are removed (like camera) and I am not smart enough
to keep track of when I should ignore the warning beeps.

--
Carl K
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux