Questions tagged [hot-plug]

The process of replacing or adding components without stopping or shutting down a computer system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Hotplug - USB tty device links related to usb port

I have 5 devices with the same Vendor and Product ID (12d1/1c05/102) - GSM modems. Each device generates 3 interfaces ttyUSB0, ttyUSB1, ttyUSB2 in the DEV directory. It needs to create its own ...
user avatar
  • 1
0 votes
1 answer
124 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"?
user avatar
  • 121
1 vote
0 answers
265 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. ...
user avatar
  • 11
1 vote
0 answers
15 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/...
user avatar
0 votes
1 answer
139 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/...
user avatar
1 vote
0 answers
106 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 ...
user avatar
  • 111
5 votes
2 answers
8k 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 ...
user avatar
1 vote
1 answer
229 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 ...
user avatar
12 votes
2 answers
3k 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 ...
user avatar
1 vote
2 answers
299 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 ...
user avatar
  • 1,136
1 vote
1 answer
3k 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, ...
user avatar
  • 1,032
2 votes
1 answer
659 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 ...
user avatar
  • 21
0 votes
1 answer
412 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 ...
user avatar
1 vote
0 answers
886 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 ...
user avatar
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 ...
user avatar
  • 826
2 votes
3 answers
4k 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 ...
user avatar
  • 171
1 vote
0 answers
141 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?
user avatar
  • 551
2 votes
1 answer
5k 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-...
user avatar
  • 1,471
1 vote
2 answers
2k 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 ...
user avatar
2 votes
2 answers
4k 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 /...
user avatar
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 ...
user avatar
3 votes
0 answers
1k 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 ...
user avatar
1 vote
0 answers
134 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, ...
user avatar
  • 111
7 votes
2 answers
1k 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 ...
user avatar
  • 171
7 votes
5 answers
13k 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 ...
user avatar
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{...
user avatar
1 vote
1 answer
687 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 ...
user avatar
0 votes
1 answer
629 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 ...
user avatar
  • 103
8 votes
2 answers
2k 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. ...
user avatar
3 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 ...
user avatar
1 vote
1 answer
45 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 ...
user avatar
  • 289
6 votes
0 answers
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 ...
user avatar
  • 1,671
1 vote
0 answers
910 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",...
user avatar
1 vote
0 answers
222 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?
user avatar
1 vote
1 answer
364 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 ...
user avatar
4 votes
0 answers
277 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 14.2k
2 votes
1 answer
1k 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 ...
user avatar
  • 881
4 votes
0 answers
439 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 -...
user avatar
2 votes
2 answers
564 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 ...
user avatar
3 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 ...
user avatar
  • 344
1 vote
2 answers
115 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?
user avatar
  • 1,031
83 votes
6 answers
94k 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 ...
user avatar
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 ...
user avatar
  • 29.5k
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 ...
user avatar
  • 439
3 votes
2 answers
8k 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 ...
user avatar
  • 3,655
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 ...
user avatar
  • 36.1k
24 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 ...
user avatar