Questions tagged [hot-plug]
The process of replacing or adding components without stopping or shutting down a computer system.
50
questions
0
votes
0
answers
15
views
TB3 NVMe SSD enclosure shows up if connected on boot, but not when hot-plugging
I recently purchased an ACASIS NVMe SSD thunderbolt enclosure (Intel JHL7540 chipset).
Running on a Intel 12th gen framework laptop, the device shows up in fdisk -l and similar when the device is ...
1
vote
1
answer
41
views
Hotswapping CDs on Linux
Right now I'm trying to install Battlefield 2 from CD-ROM on my Linux computer (I know Battlefield 2 is a little old now but I couldn't care less). Of course, it needs to be run under Wine, and ...
0
votes
1
answer
240
views
Coldplug or hotplug device?
Is there a way given a device file name to figure out if it was created by some udev rule or it was created "the cold way"?
1
vote
0
answers
344
views
Service 'ifplugd' working erratically if ethernet cable unplugged at boot time
[Ubuntu kernel 18.04.4 5.4 arm64]
I use a USB network card (with udev renaming to usb0). There is no issue if the UTP cable was connected at boot. In that case, I can unplug the UTP and plug it again. ...
1
vote
0
answers
17
views
Swap disk driver on the fly
When recovering a failing hard drive, sometimes I need to switch between using uas and usb-storage. The way I do that is by piping the device port to unbind, setting the u flag in /sys/module/...
0
votes
1
answer
294
views
I cannot create symlink for USB mobile hard disk using udev
I have a problem on use udev: I want to realize USB hot plug on Ubuntu16.04, so I wrote a udev rule as follow:
KERNEL=="sd[a-z]*", ACTION=="add",SUBSYSTEM=="block",SYMLINK+="USB",RUN+="/bin/sh /root/...
1
vote
0
answers
126
views
mdev doesn't seem to be working on reboot
Our Linux Kernel is 3.10 running on an embedded mips processor with busybox.
The init script has -
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
mdev -s
We have a rule to rename a network ...
5
votes
2
answers
11k
views
Ethernet to USB adapter on Linux
I've recently bought an Ethernet to USB adapter.
When I plug this into my computer running Linux (Ubuntu in my case) , this just works automatically, and I can see an internet connection over this ...
1
vote
1
answer
390
views
Run an X program when a monitor is plugged in
I have a computer with a bizarre bug. When I turn off the monitor and turn it back on, the screen stays blank. This only happens while logged in under X (but not at the Gdm screen). I've found a way ...
13
votes
2
answers
4k
views
Prevent keyboard layout reset when USB keyboard is plugged in
Whenever I plug in a USB keyboard, the layout of all keyboards is reset to some system default (a US layout which doesn't have modifiers and other keys the way I want them). I've observed this on many ...
1
vote
2
answers
382
views
Change CPU count on live Linux VM
Is it possible to change the number of VCPUs on a KVM virtual machine on Linux without stopping it first? The Linux kernel has calls for addition and removal of CPUs (CPU hotplug in the Kernel) for ...
1
vote
1
answer
4k
views
Udev - Network cable hotplug event not catched [duplicate]
I'm running a buildroot custom linux (kernel 4.9.87) on a custom board based on an Atmel Sama5d2.
I'm trying to configure the network on the eth0 interface using dhcp only at hotplug.
Originally, ...
2
votes
1
answer
770
views
XFCE with laptop that is often plugged/unplugged to different displays
at work I was given a ubuntu laptop with gnome and unity.
However I ran in a few issues, for example the fact that I could not get the screen to lock after some time and other stuff.
As I am a XFCE ...
0
votes
1
answer
467
views
Hotplug at boot in OpenWRT
I want to run some scripts at boot. I tried a lot of things but couldn't achieve.
Here is the OpenWRT boot sequence : https://openwrt.org/docs/techref/preinit_mount
After taking a look at this link ...
2
votes
0
answers
1k
views
Blank screen after sleeping: hotplug event: connector link-state is BAD
In the past my laptop worked well, but for the past months I have had issues with the laptop screen not being able to wake up after certain events. Basically, after I suspend the laptop there is an ...
2
votes
0
answers
1k
views
Configure external monitor with MacBook Air
I have a MacBook Air (13-inch, Early 2015) and I run Ubuntu 16.04 on it. Under Ubuntu I cannot detect the external monitor with the thunderbolt cable. Settings -> Displays doesn't show any other ...
3
votes
3
answers
6k
views
Use USBIP for devices that are being removed and reconnected
I am using usbip and a raspberry pi to extend the range of a wireless keyboard to a computer that is just a tad too far away for the keyboard to work reliably on its own.
Sometimes the USB receiver ...
1
vote
0
answers
148
views
Is it enough to just say `allow-hotplug eth0`? [duplicate]
Are the following statements in /etc/network/interfaces equivalent?
allow-hotplug eth0
and..
auto eth0
allow-hotplug eth0
That is, does allow-hotplug do everything that auto does and more?
3
votes
1
answer
6k
views
Sata hotplug doesn't work
Can you help me understand, why my SATA hotplug doesn't work? When I plug sata disk, lsblk doesn't change. There is only my system disk /dev/sda.
I have linux:
$ uname -a
Linux Z170-D3H 4.9.0-3-...
1
vote
2
answers
3k
views
CentOS 73: how to ifup a NIC automatically?
In CentOS 7.3, without Network Manager, how do I ensure a NIC being ifup automatically?
I added HOTPLUG=yes in the /etc/sysconfig/network-scripts/ifcfg-eth1, but when I hotplug the NIC, the NIC is ...
2
votes
2
answers
5k
views
How do I configure an Arch Linux system to automatic mount an external harddisk when it is plugged in?
I am wondering how I can configure an Arch Linux system to mount an external hard disk when it is plugged in (as opposed to have it plugged in at startup).
In order to to that, I added
/dev/sdb1 /...
2
votes
0
answers
36
views
Proper automount on systemd Linux systems [duplicate]
What is the proper way to do a boot/hot-plug automount for ATA and USB storage devices on Linux systems using systemd without requiring a GUI or a user having to be logged in?
It seems that calling ...
3
votes
0
answers
2k
views
Automount local drives on boot and hot-plug
I am trying to automatically mount all readable internal and external drives on boot and on hot-plug if they are not already mounted, preferably as a non-root user.
I cannot use fstab to do this ...
1
vote
0
answers
146
views
Belkin thunderbold docking station with external monitor not working on macbook pro with Fedora 24?
I have a Macbook pro (late 2015) with a Belkin thunderbolt docking station.
On that docking station, I have a screen connected to it via (mini) DisplayPort, along with other items (keyboard, mouse, ...
7
votes
2
answers
2k
views
On Linux, (how) can I "hot-unplug" memory?
This is what I've tried:
sudo zsh -c 'echo offline >/sys/devices/system/memory/memory109/state'`
and got the following error:
zsh:echo:1: write error: device or resource busy
Do I perhaps need ...
9
votes
5
answers
16k
views
Find when new hardware is connected on FreeBSD
How can I find out when a device is connected to my FreeBSD machine? Lets say I plug in a USB device, HDMI device, Bluetooth or something like that.
Can I have a console output to say [device] and ...
2
votes
1
answer
5k
views
udev monitor hotplug rule not running
I have setup a basic udev rule to detect when I connect or disconnect a mDP cable.
The file is /etc/udev/rules.d/95-monitor-hotplug.rules
KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{...
2
votes
1
answer
737
views
Different keyboard layout for each keyboard
my setup is the following:
I have a notebook (with integrated keyboard/non-Apple running Arch) and an external keyboard (fancy Apple keyboard)
The problem is that Apple uses a different internal ...
0
votes
1
answer
683
views
Embedded linux hotplug changed mount point
I have a linux media player that was very common before android's age. It is a MIPS running Linux Venus 2.6.12.6 and has 2 sata, 2 usb and 1 sdcard port. Since the flash memory is very limited, I ...
8
votes
2
answers
3k
views
How to check if a drive supports hotswap?
Not all SATA drives support hot-swap. Especially older models do not seem to work correctly and require the system to be rebooted, despite the fact that the controller works well with newer drives.
...
4
votes
2
answers
16k
views
dmesg: pci BAR 7: can't assign io
I have VMware virtual machine running Debian Wheezy. I have compiled my own kernel 3.14. I have noticed dmesg is flooded with messages pci BAR 7: can't assign io (size 0x1000).
I have no idea what ...
1
vote
1
answer
46
views
Pushing changes to driver repos
My understanding of dkms is that its a way to dynamically manage all connected/disconnected device drivers on a Linux system. If that's correct, then I have to imagine that it allows you to configure ...
6
votes
1
answer
2k
views
How to prevent kernel or any broadcast messages from flooding the TTYs?
Because of some hot-plugging issue, similar to what talked of here, the TTY displays show a continuous stream of messages (which are also logged in the /var/log directory). Every text I key in flows ...
1
vote
0
answers
941
views
udev rules fail to run a script on addition of usb device
Here is a simple rule I created in /etc/udev/rules.d/21-persistent-local.rules for my Seagate 500 GB expansion drive which uses a USB interface on a Debian machine running inside a VM.
ACTION=="add",...
1
vote
0
answers
233
views
Hotplug Device Driver Priority
Is it possible to have more than one driver for one purpose (eg. USB) included in the Linux kernel?
If so, then how does the kernel decide which one to load?
1
vote
1
answer
398
views
What's hotplug?
Many questions are tagged : hot-plug . However , No wiki found in : Tag info
I've read this:
Modularized USB drivers are loaded by the generic /sbin/hotplug
support in the ker- nel, which is ...
4
votes
0
answers
282
views
Keep keyboard layout upon inserting external keyboard
I have a custom keyboard layout, that I enable using this commands:
setxkbmap -verbose us -variant altgr-intl
xmodmap -verbose /home/coub/.myxmodmap
This works just fine, the thing is, that when I ...
6
votes
1
answer
4k
views
Is it possible to simulate/force/fake an USB device unplug and replug on Linux?
So I've got a strange problem that I've been running onto. I've got a bitcoin usb miner, Bitfury, and I'm using CGMiner to mine.
When I start the application, as root, the USB device is not detected ...
4
votes
0
answers
1k
views
The proper way to turn off an external sata encolsure?
I have an e-sata external enclosure with a port expander and 4 sata disks in it that I use for periodic backups. I have what I think is a sound method for powering it off, but not sure if it is the ...
2
votes
1
answer
2k
views
Changing resolution : with X and without X
I'm working on an Ubuntu server without X and I would like to easily change the resolution.
In order to do that, I have to specify GRUB_GFXPAYLOAD_LINUX=1280x800 in the file /etc/default/grub, then ...
4
votes
0
answers
485
views
Raspbian: how ifplugd works on lo and other interface
On my raspbian, I'm wondering why ifplugd (link detection daemon for ethernet devices) is also running on the lo the loopback interface.
The ps command displays:
/usr/sbin/ifplugd -i lo -q -f -u0 -...
2
votes
2
answers
605
views
Detecting the device of a crypto mount
I have an external eSATA-hdd on an OpenSUSE 12.2 system. The external hdd has an LVM on a dm-crypt partition.
I mount it by powering it up and then doing
rescan-scsi-bus.sh
cryptsetup -v luksOpen
...
4
votes
1
answer
5k
views
How to check if hot-swap or hot-plug are activated on my Linux machine
I have Ubuntu 12.04.1 LTS 64-bit on a PowerEdge 2900. My current setup has two 300GB disks (no RAID), but I want migrate the system to three new 600GB disks. I'm trying to connect the new disks, make ...
1
vote
2
answers
116
views
What modules in the Linux source code take care of hot-pluggability?
Could someone shed more light on the code/modules that are responsible for the hot-pluggabilty of the hardware used in Linux machines?
86
votes
6
answers
98k
views
How can I safely remove a SATA disk from a running system?
I sometimes need to plug a disk into a disk bay. At other times, I have the very weird setup of connecting a SSD using a SATA-eSATA cable on my laptop while pulling power from a desktop.
How can I ...
7
votes
2
answers
5k
views
VirtualBox guest: 16 CPUs detected but only 1 online
I am running VirtualBox (using the Qiime image http://qiime.org/install/virtual_box.html)
The physical hardware is a 32 core machine. The virtual machine in VirtualBox has been given 16 cores.
When ...
9
votes
4
answers
12k
views
How can I switch to my USB headset automagically when it's plugged in?
I'm running Funtoo Linux, a Gentoo derivative. My two new Plantronics USB headsets (one wired, one wireless) work nicely. I plug one in, ALSA notices it, and if I manually set an application to use ...
3
votes
2
answers
9k
views
How do you force Linux to detect a PS/2 device (e.g. mouse) on demand?
I plugged in a PS/2 mouse while inside my Gnome desktop, but Linux doesn't recognize it.
Linux will only recognize the PS/2 mouse if it is plugged in before booting the machine (like a normal ...
1
vote
4
answers
9k
views
cfgmgr like command under Linux?
cfgmgr is a command under AIX/ksh that checks for new hardware; e.g. new HDD's that have been added without a shutdown.
Question: Are there any similar commands under Linux? If "fdisk -l" doesn't ...
25
votes
2
answers
17k
views
What happens when a USB drive is plugged in?
What is the flow of USB events from kernel space to user space? I get a popup on my desktop when I plug in a USB drive -- what is the sequence of events that leads from detecting the new USB drive to ...