Questions tagged [hotplugging]
38 questions
1
vote
1 answer
udev rule doesnt trigger GUI application
I am able to get this udev rule in 99-monitor-hotplug.rules to trigger:
ACTION=="change", SUBSYSTEM=="drm", ENV{HOTPLUG}=="1",
RUN+="/usr/local/bin/monitor-hotplug.sh"
But I cannot seem to get it to trigger an OpenCV GUI application in the…

Mr OpenCV
- 51
- 6
1
vote
0 answers
How do I trigger a udev rule?
I have a barcode scanner, and I would like to run a script when I connect it.
With the command
udevadm info -ap /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/tty/ttyACM0
I get information about the device. Here is an excerpt:
looking…

Andre
- 1,249
- 1
- 15
- 38
1
vote
1 answer
Detecting USB mouse. Qt on Embedded Linux
I need to hide the cursor when USB mouse is disconnected from the system, and show it when the mouse is connected. Any ideas how it can be done?

Dorin Botan
- 1,224
- 8
- 19
1
vote
2 answers
what is the difference between hot pluggable device and removable device?
I have read that USB HDD are hot-pluggable but not removable whereas USB Flash drives are both removable and hot-pluggable.Internally, the windows DEVICE_OBJECT structure has Characteristics flag that can have a value FILE_REMOVABLE_MEDIA for…

Embydextrous
- 1,611
- 1
- 12
- 20
1
vote
1 answer
Re-enumeration and Hotplug of PCIe on Linux
I am using PCIe device connected to linux RH6.4 machine through cable, and I need to force linux to re-enumerate the PCIe device (after its power on) without rebooting the machine.
Currently enumeration is done only after reboot.
I tried the…

jfcj2003
- 11
- 3
1
vote
0 answers
VCPU hot unplug on windows on XEN
I have a XEN hypervisor running Windows Server 2008 R2 Datacenter version. I can hot plug VCPUs for Windows 2008 with the following command to four VCPUs:
xm vcpu-set "windows_2008" 4
But I can not hot unplug VCPU from it with any of the following…

Wuwoo
- 106
- 4
1
vote
1 answer
CPU hot plugging and strict 1:1 threading
I wish to add support for CPU hot plugging in my application that has strict affinity rules. Each physical core has exactly one thread pinned to it, but the logic I use for pinning a thread to a CPU is fairly naive and fails if a CPU between 0..N is…

haste
- 1,441
- 1
- 10
- 21
1
vote
1 answer
How is a device node created when a piece of hardware is attached to the Computer?
I want to know how a device node is created when a hardware is connected to the system.
Information that I know:
When a piece of hardware is connected to the system, the device name is compared with the driver name, if it matches, then probe is…

Sandeep
- 18,356
- 16
- 68
- 108
0
votes
1 answer
When you plug in a HDMI after booting of a Raspberry Pi 4, you get the display but not the audio
When HDMI cable is pluggwd in at the boot time, the Rasp Pi 4 display comes up normally and audio plays. (One can check by right clicking on the audio icon on the menu bar, to see the device profile in which HDMI is selected by default.)
Now even if…

MAT
- 11
- 1
0
votes
1 answer
jSerialComm: dynamically detect available serial ports (hotplug device)
I've created a Java GUI which lists all serial ports in a drop down menu from which the user selects the correct port and clicks connect. Connection to an Arduino is then established and the user is able to perform some actions. I get the available…

dmy
- 1
- 1
0
votes
0 answers
No IP address on hotplug ethernet on embedded Linux
I have a problem with hotplug ethernet in an embedded Linux (ver 3.6.0-rc5).
If the network cable is connected during boot everything works fine.
But if I connect the cable after boot I do not get an IP address.
My /etc/interfaces look like this:
#…

Henrik Bøgelund
- 81
- 9
0
votes
0 answers
Time interval between USB audio card detection and being able to play audio
I'm working on a project where a USB audio card is unplugged and plugged arbitrarily from a computer that will be playing sounds. My software should be playing sound as soon as possible right after the card is plugged in.
In order to detect the USB…

José Tomás Tocino
- 9,873
- 5
- 44
- 78
0
votes
0 answers
linux-pcie preallocate BAR space?
I have a device that I wish to enable hotplug on. It has BARs larger than NVMe standards. My BIOS (Dell R640) has no options for preallocating BAR space.
When I try to start with an empty system and add the cards, I get the following errors:
[ …

IDLacrosseplayer
- 135
- 1
- 7
0
votes
1 answer
How does libusb detect an USB device via hotplug under Windows?
For research i looked into Libusb to see how hotluging is done. For Linux, i found the corresponding source in libusb\os\linux_udev.c where a thread is started which makes a poll() on udev. However, after spending hours in the sources of Libusb I…

mazi
- 51
- 8
0
votes
0 answers
PCIe Problem -- Why pciehp gives contradictory log info
I am running fio jobs on my NVMe SSD and hotplug it then. The platform is hot-pluggable and the system is Centos 7.0.Several seconds after my plug-out, the system encounters a crash and gives these print info:
================
[ 1026.468414]…

Leo Erzhuo Chen
- 1
- 1