/dev
.linux:administration:kernel
Table of Contents
Kernel
Info
- query CPU information:
cpuid
- show system/kernel info:
uname -a
- show (or configure) kernel parameters at runtime:
sysctl -a
- show kernel memory usage:
free
- show modules loaded:
lsmod
- show all module parameters:
modinfo -p <modname>
- show current module parameters:
systool -m <modname> -av
Logs
- show kernel (boot) messages:
dmesg
- configure to show more kernel messages (with timestamp)
echo 8 > /proc/sys/kernel/printk echo Y > /sys/module/printk/parameters/time
or use for example
loglevel=7
as kernel boot parameter (as recommended at StackOverflow).
Udev
Links
- Ubuntuusers Wiki: udev
- ArchWiki: udev
- Daniel Drake: Writing udev rules
- Stack Exchange: Automount USB sticks on Gentoo
Commands
- show udev daemon1) events:
udevadm monitor --environment
- after changing udev rules:
udevadm control --reload
Files
/etc/udev/rules.d
,/lib/udev/rules.d
: udev rules
Block Devices
- show all block devices:
lsblk
- show hard drive information:
hdparm -I /dev/sda
- blacklist the UAS driver for LaCie USB mass storage in file
/etc/modprobe.d/usb-storage-quirks.conf
:2)# Do not use USB driver UAS (USB Attached SCSI) with LaCie mass storage. # This is a younger USB 3.x protocol and not stable at the moment. # See usb-storage.quirks in https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt options usb-storage quirks=059f:105e:u
Hardware
Links
PCI
- show PCI information:
lspci -k -nn
USB
- show tree of USB devices:
lsusb -t
Bluetooth
Links
- ArchWiki: Bluetooth
- ArchWiki: Bluetooth keyboard
- ArchWiki: Bluetooth mouse
- ArchWiki: Bluetooth - Pairing
- BITblokes (JDO): MX Keys Mini (Logitech) mit Linux verbinden – gute Tastatur, ABER
Troubleshooting
Checklist:
- check kernel module btusb is load and running:
lsmod | grep btusb
- check for kernel problems:
dmesg | grep -i bluetooth
- check Bluetooth status:
sudo systemctl status bluetooth
, orsudo service bluetooth status
- after changing files in
/etc/bluetooth
do:sudo service bluetooth restart
- use
sudo bluetoothctl
to check for Bluetooth devices and their state (also the Blueman applet might be useful for this) - check Laptop Power Management for Bluetooth status:
sudo tlp-stat -u -v
- change
/etc/default/tlp
to adjust Laptop Power Management regarding Bluetooth:
1)
User space device manager for
2)
See also StackExchange: Connection problem with USB3 external storage on Linux (UAS driver problem).
linux/administration/kernel.txt · Last modified: 2024/11/07 13:21 by Ralf H.