Questions tagged [hotplugging]
38 questions
31
votes
3 answers
How to do a TRUE rescan of PCIe bus
I have an FPGA (Like most of the people asking this question) that gets configured after my Linux kernel does the initial PCIe bus scan and enumeration. As you can guess, the FPGA implements a PCIe endpoint.
I would Like to have the PCIe core…

whh4000
- 905
- 1
- 12
- 30
14
votes
1 answer
Detect the presence of a device when it's hot plugged in Linux
I am running the SPI code on the panda board and I want to know which function in the code is responsible for detecting the device when it's hot plugged.
Can somebody with the background of embedded systems, Linux device drivers and/or spi please…

Sagar Jain
- 7,475
- 12
- 47
- 83
10
votes
3 answers
Detect external display being connected or removed under Windows 7
Is there some event or notification I can receive or hook each time an external LCD monitor is plugged in or unplugged from a laptop running Windows 7?
The laptop detects this and switches my display to the external screen and back with certain…

hippietrail
- 15,848
- 18
- 99
- 158
8
votes
2 answers
What is the sequence followed by the Linux kernel to configure a device?
As I understood after reading the chapter related to The Linux Device Model in the Linux Device Drivers 3rd Edition, when a new device is configured, the kernel (2.6) follows more or less this sequence:
The Device is registered in the driver core…

Jaime Soriano
- 7,309
- 2
- 33
- 45
7
votes
3 answers
C++ Detecting USB serial device plugged/unplugged
I need to detect when a USB serial device is plugged or unplugged on my embedded system and know what is the tty associated with it.
My system runs over a 2.6 Linux Kernel.
Since I don't have write access to udev rules, nowadays I'm trying to get…

Valmir
- 401
- 1
- 5
- 14
5
votes
2 answers
Prevent usbhid from autoloading when USB HID device is plugged in
I'm trying to (reversibly) disable USB HID support on a Raspbian Jessie install, kernel version 4.4.16-v7+. We need to have the Raspberry Pi in a semi-public space and display stuff on a TV, and we'd like to make it at least somewhat hard to mess…

1flx
- 165
- 3
- 10
4
votes
4 answers
stm32 USB-CDC after hardware reset
i have programmed my stm32f103 blue-pill board with USB-CDC protocol
I can read and write on this Port
But after performing a hardware reset, the COM port is unavailable
I have to unplug the USB connection and re-plug it again then the COM port…

nema1
- 91
- 1
- 4
4
votes
1 answer
pci_Driver.probe not being called
I'm getting started in Linux Device Driver development for a PCI device connected via a laptop's PCIe expansion slot.
On boot, everything works beautifully. However, I'm trying to get basic Hotplug support online. When I eject the card, I can see…

Yeraze
- 3,269
- 4
- 28
- 42
2
votes
0 answers
Linux cpu hotplug not working as expected
I'm testing linux cpu hotpluging on normal 4-core ARM based on Android 8.1 kernel 4.4 sys. Problem seems that after onlining a CPU again taskset and kernel refuses to move and/or schedule any tasks on the core. E.g. doing:
echo 0 >…

Xenen GLiu
- 21
- 1
2
votes
1 answer
Java EE Plugin Framework using CDI Instance Iterator
I have an application that consists of wars, an core ejb with lots of service beans in a jar and remote interfaces in another jar. Everything is packaged in an ear and running on Glassfish 4.1.
Now i want to add extenstion points or plugin support…

IUnknown
- 73
- 1
- 7
2
votes
1 answer
What does a linux device need to be seen by Hal?
I'm trying to learn about device drivers on Linux Kernel, for that I've created three modules with:
A bus type
A device driver
A fake device that does nothing now, only is registered
Everything works fine, I can load the bus, the driver and the…

Jaime Soriano
- 7,309
- 2
- 33
- 45
2
votes
0 answers
Is there a reason to use udev when I have mdev?
I'm running an embedded linux system which is based to TI´s Arago base image. This distribution comes with both mdev and udev. It doesn't seem like either of them are configured, so I'm about to choose between one of them. The system is pretty…

Kotte
- 811
- 1
- 9
- 21
1
vote
1 answer
USB Hotplugging callbacks with python on Windows
Is it possible to write a python script such that a function is called whenever a USB device is added or removed on Windows?
libusb (and corresponding python modules such as libusb1) appears to be the most popular solution, but it lacks hotplugging…

Michael Altfield
- 2,083
- 23
- 39
1
vote
2 answers
Problem with virsh commands
I have been trying to use virsh attah-disk to attach a qcow2 file as additional storage source. The syntax i am using is (from internet):
virsh attach-disk --driver file vm2 disk2.qcow2 hdc
If the vm is running or paused it shows:
error: this…

Jatin Kumar
- 2,635
- 9
- 36
- 46
1
vote
1 answer
how to hotplug USB device on Qemu 4.2.0?
I have Qemu 4.2.0 with Debian Testing Bullseye and Kernel 5.4.0 and I need to hotplug and unplug an USB device.
Currently I attach my USB device with
qemu... -usb -device usb-host,hostbus=x,hostaddr=y
but when I physically remove the device I can't…

downtheroad
- 409
- 4
- 11