Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
18 views
Implement the Driver For Bluetooth Device
I have a HP mouse. Recently, I have been practicing implementing the device driver. Instead of using the hid-generic driver, I would like to use my customized driver for the Bluetooth device. I don't have any ideas about how to implement it in another way for this character device. My idea is kind o...
I have a HP mouse. Recently, I have been practicing implementing the device driver. Instead of using the hid-generic driver, I would like to use my customized driver for the Bluetooth device. I don't have any ideas about how to implement it in another way for this character device. My idea is kind of similar to my previous implementation on the USB driver by using the USB API instead of the hid-usb static driver. I am wondering if there is any API or subsystem category related to Bluetooth that I can use to implement a driver for the mouse. Or I am wondering if there are any better ideas or designs about this.
Wen (11 rep)
Aug 5, 2025, 09:26 AM
2 votes
2 answers
1895 views
Disable bridge module insert?
I have Fedora 20 setup with default kernel configuration, where bridge feature is enabled as a module (`CONFIG_BRIDGE=m`), and the bridge module loads as the system starts. I don't understand who initiates it, since I have not found anything about `bridge.ko` in `/etc/sysconfig/modules/*`. However i...
I have Fedora 20 setup with default kernel configuration, where bridge feature is enabled as a module (CONFIG_BRIDGE=m), and the bridge module loads as the system starts. I don't understand who initiates it, since I have not found anything about bridge.ko in /etc/sysconfig/modules/*. However it ends up in the memory and every time I have to 'rmmod' it. I would like to prohibit loading of the bridge.ko on the start up, yet I still want to manually load/unload bridge.ko whenever necessary. I know it is possible to use the blacklist feature in /etc/modprobe.d/blacklist.conf, but can anybody point out who is loading bridge.ko in default setup of Fedora 20?
Mark (1943 rep)
Oct 2, 2014, 01:52 AM • Last activity: Aug 3, 2025, 09:06 PM
0 votes
1 answers
4019 views
Add .ucode driver in Debian installer
When I install Debian, installer request network connection. But Debian can't found my Ethernet card (Intel(R) Dual Band Wireless-AC 8260). I use non-free [installer][1] and try put `.ucode` file in `/firmware/` folder on USB (from [here][2]), but it not work! I also try renamed `iwlwifi-8000` in iw...
When I install Debian, installer request network connection. But Debian can't found my Ethernet card (Intel(R) Dual Band Wireless-AC 8260). I use non-free installer and try put .ucode file in /firmware/ folder on USB (from here ), but it not work! I also try renamed iwlwifi-8000 in iwlwifi-8260, but it also not work. Big thanks for your response!
Nikita Kulikov (3 rep)
Oct 22, 2016, 05:23 AM • Last activity: Aug 1, 2025, 06:02 PM
1 votes
0 answers
26 views
Getting Tuxedo laptop fans to work on BSD
This question pertains to Tuxedo laptops (and possibly Clevo, Uniwill, or Tongfang laptops, which Tuxedo systems appear to be based on). Tuxedo provides official support for Windows and Linux, but I'm particularly interested in BSD. For reference, my specific laptop model is the Tuxedo Gemini 15 Gen...
This question pertains to Tuxedo laptops (and possibly Clevo, Uniwill, or Tongfang laptops, which Tuxedo systems appear to be based on). Tuxedo provides official support for Windows and Linux, but I'm particularly interested in BSD. For reference, my specific laptop model is the Tuxedo Gemini 15 Gen 2. The issue I'm experiencing is that the fans are controlled by the embedded controller (EC), which by default does not spin the fans adequately. Updating the EC firmware hasn't resolved the problem. As a result, the laptop runs hot, and I'm concerned that prolonged operation under these conditions may degrade the hardware. - The EC does not have pre-programmed fan profiles that the software selects. - The driver writes a desired fan speed directly as an 8-bit integer (255 being full speed and 0 being off). - On Linux, a daemon communicates with the driver via IOCTL, and the driver communicates with the EC through ACPI. What options are available to enable proper fan control on BSD operating systems (specifically OpenBSD or FreeBSD) without having to write my own driver?
Mikke Mus (153 rep)
Aug 1, 2025, 11:34 AM • Last activity: Aug 1, 2025, 12:27 PM
1 votes
1 answers
2004 views
Manjaro/hashcat error : clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR
I'm currently on Manjaro. When I run `hashcat`, I get the following error: ``` clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR ``` Running `hashcat` with `sudo` gives the same error. Having googled the error, I found that it's usually a driver problem with NVIDIA graphics cards so I tried some things...
I'm currently on Manjaro. When I run hashcat, I get the following error:
clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR
Running hashcat with sudo gives the same error. Having googled the error, I found that it's usually a driver problem with NVIDIA graphics cards so I tried some things with the drivers. This is my NVIDIA info:
$ lspci -v | grep -i nvidia 
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1) 
        Kernel driver in use: nvidia 
        Kernel modules: nouveau, nvidia_drm, nvidia
Upon trying to install the driver with mhwd, I get the following error:
$ sudo mhwd -a pci nonfree 0300
> Skipping already installed config 'video-hybrid-intel-nvidia-440xx-prime' for device: 0000:00:02.0 (0300:8086:591b) Display controller Intel Corporation HD Graphics 630
I checked my installed drivers and confirmed that it's installed:
$ pacman -Qs nvidia 
local/lib32-nvidia-440xx-utils 440.64-1 
    NVIDIA drivers utilities (32-bit) 
local/libvdpau 1.3-1 
    Nvidia VDPAU library 
local/linux54-nvidia-440xx 440.64-2 (linux54-extramodules) 
    NVIDIA drivers for linux. 
local/mhwd-nvidia-340xx 340.108-1 
    MHWD module-ids for nvidia 340.108 
local/mhwd-nvidia-390xx 390.132-1 
    MHWD module-ids for nvidia 390.132 
local/mhwd-nvidia-418xx 418.113-1 
    MHWD module-ids for nvidia-418xx 418.113 
local/mhwd-nvidia-430xx 430.64-1.0 
    MHWD module-ids for nvidia-430xx 430.64 
local/mhwd-nvidia-435xx 435.21-1.0 
    MHWD module-ids for nvidia 435.21 
local/mhwd-nvidia-440xx 440.64-1 
    MHWD module-ids for nvidia 440.64 
local/nvidia-440xx-utils 440.64-1 
    NVIDIA drivers utilities 
local/nvidia-prime 1.0-1 
    NVIDIA Prime Render Offload configuration and utilities
When I tried uninstalling the seemingly unnecessary drivers, I got dependency errors:
$ sudo pacman -Rns local/mhwd-nvidia-340xx local/mhwd-nvidia-390xx local/mhwd-nvidia-418xx local/mhwd-nvidia-430xx local/mhwd-nvidia-435xx 
checking dependencies... 
error: failed to prepare transaction (could not satisfy dependencies) 
:: removing mhwd-nvidia-340xx breaks dependency 'mhwd-nvidia-340xx' required by mhwd-db 
:: removing mhwd-nvidia-390xx breaks dependency 'mhwd-nvidia-390xx' required by mhwd-db 
:: removing mhwd-nvidia-418xx breaks dependency 'mhwd-nvidia-418xx' required by mhwd-db 
:: removing mhwd-nvidia-430xx breaks dependency 'mhwd-nvidia-430xx' required by mhwd-db 
:: removing mhwd-nvidia-435xx breaks dependency 'mhwd-nvidia-435xx' required by mhwd-db
Of course, mhwd-db can't be uninstalled because of mhwd. I checked nvidia-settings but don't know what exactly I should do here. nvidia-settings I've also seen mentions of bumblebee but I'm not sure if I should use it. How can I fix the error clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR?
ChocolateOverflow (1161 rep)
Apr 11, 2020, 12:48 PM • Last activity: Jul 28, 2025, 02:09 PM
6 votes
3 answers
24380 views
Cannot remove module nvidia nvidia-uvm in order to install drivers
I was trying to update the drivers of a system with a couple of Nvidia GTX 980 cards but somehow I messed up and now I encounter this error when I run the installer with Nvidia: ERROR: An NVIDIA kernel module 'nvidia-uvm' appears to already be loaded in your kernel. This may be because it is in use...
I was trying to update the drivers of a system with a couple of Nvidia GTX 980 cards but somehow I messed up and now I encounter this error when I run the installer with Nvidia: ERROR: An NVIDIA kernel module 'nvidia-uvm' appears to already be loaded in your kernel. This may be because it is in use (for example, by the X server), but may also happen if your kernel was configured without support for module unloading. Please be sure you have exited X before attempting to upgrade your driver. If you have exited X, know that your kernel supports module unloading, and still receive this message, then an error may have occured that has corrupted the NVIDIA kernel module's usage count; the simplest remedy is to reboot your computer. lsmod | grep -i nvidia gives: nvidia_uvm 77824 0 nvidia 8540160 77 nvidia_uvm drm 344064 4 nvidia So the suggestion that an error may have occured that corrupted the kernel module usage count makes sense, however, the remedy does not help and rebooting does not do a thing. I have tried blacklisting both modules in different ways and no matter what I do they are always back. Doing rmmod or modprobe -r does not help either. In fact with the later I get: modprobe: FATAL: Module nvidia-uvm not found. I have tried everything I found on the net, nothing changed that 77 there. Any ideas? Thanks!
Miquel Martí (61 rep)
Dec 12, 2016, 07:01 PM • Last activity: Jul 28, 2025, 01:23 PM
2 votes
2 answers
3611 views
Cannot change UDP fragmentation offload
I have a Dell PowerEdge R740 server with an Intel Corporation Ethernet Controller x710 for 10GbE SFP+ network interface. I have installed RHEL 8 on it. I am trying to enable UDP Fragmentation Offload (UFO): $ sudo ethtool --offload eno1 ufo on I get this message: ``` Cannot change UDP fragmentation...
I have a Dell PowerEdge R740 server with an Intel Corporation Ethernet Controller x710 for 10GbE SFP+ network interface. I have installed RHEL 8 on it. I am trying to enable UDP Fragmentation Offload (UFO): $ sudo ethtool --offload eno1 ufo on I get this message:
Cannot change UDP fragmentation offload  
Cannot change any device features.
eno1 has SFP+ DAC cable. Is the issue because of SFP+ cable? or any driver that I might be missing?
Ramzah Rehman (21 rep)
Nov 13, 2019, 11:16 AM • Last activity: Jul 28, 2025, 12:01 PM
2 votes
1 answers
4110 views
How to enable graphics acceleration for SIS 771/671 on Zorin OS 8 lite (lubuntu 13.10)
Anyone knows how can I check/test my 2d acceleration? See if it's on/off and working correctly and as efficient as it should? I have SIS 771/671 on Zorin OS 8 Lite. I believe the resolution should be better (it's 1024x768 right now and it looks a bit stretched horizontaly I assume 1024x1800 could lo...
Anyone knows how can I check/test my 2d acceleration? See if it's on/off and working correctly and as efficient as it should? I have SIS 771/671 on Zorin OS 8 Lite. I believe the resolution should be better (it's 1024x768 right now and it looks a bit stretched horizontaly I assume 1024x1800 could look fine) and I feel video could go more smoothly and also I see some horizontal lines on the screen when playing movies. So basically I think that the video driver is still not proper here. I found this instruction here at comment #230: sis drivers discussion I have a patch here : https://www.archlinux.org/packages/?name=xf86-video-sisimedia btw the patch is for 13.04 - will it also work or be needed for 13.10? Otherwise is there any other recommended lite distro on which SIS 771/671 could work fine and with acceleration ON?
pper (21 rep)
Oct 28, 2014, 02:54 PM • Last activity: Jul 27, 2025, 10:01 AM
0 votes
0 answers
16 views
After boot, screen freezes: Mint 22.1 Xia on Sager NHx0DB,DE, i7-10870H, NVIDIA GeForce GTX 1650 M
Just received a Sager NHx0DB,DE w/ i7-10870H CPU & NVIDIA GeForce GTX 1650 Mobile GPU. Cinnamon Mint 22.1 Xia was preinstalled by Freegeek.org a no-support community non-profit refurbisher. I installed the latest open source Nvidia video driver and rebooted as it instructed, but now it boots then st...
Just received a Sager NHx0DB,DE w/ i7-10870H CPU & NVIDIA GeForce GTX 1650 Mobile GPU. Cinnamon Mint 22.1 Xia was preinstalled by Freegeek.org a no-support community non-profit refurbisher. I installed the latest open source Nvidia video driver and rebooted as it instructed, but now it boots then stops, showing the green LinuxMint logo. How do I reboot back into the original Intel video driver, or into a safe mode. and remove that nVidia driver? Product Specs: Model: NHx0DB,DE OS: Linux Mint 22.1 Xia (Cinnamon) CPU: Intel Core i7-10750H @ 2.6 GHz / 4.4 GHz / 5 GHz Max (6 Cores + HT) RAM: 16 GB DDR4 @ 2933 MHz (16 GB + Empty) - 32 GB Max Storage: 256 GB NVMe (SK hynix BC711 HFM256GD3JX013N) GPU: • Intel UHD Graphics • NVIDIA GeForce GTX 1650 Mobile / Max-Q {snip} -- Resolved by: cycle power, then when manufacturer logo appeared, since UEFI enabled, tapped {Esc} to go to GRUB Menu, chose top item, and it loaded the Cinnamon Desktop Environment. Took several power cycles to get the {Esc} tap duration just right to avoid **grub** **grub** **grub** *all the way down...*
K7AAY (3926 rep)
Jul 26, 2025, 02:18 AM • Last activity: Jul 26, 2025, 03:11 AM
0 votes
1 answers
4445 views
Wi-fi adapter not recognized on Kali Linux
I bought a wireless adapter Realtek 8812BU Wireless. It came with a small CD for the driver but since I don't have a CD-ROM I looked for the driver on the Internet. After a few searches, I managed to install the right one on my Windows 11 machine, it appears as WI-FI 3 on Windows. So everything work...
I bought a wireless adapter Realtek 8812BU Wireless. It came with a small CD for the driver but since I don't have a CD-ROM I looked for the driver on the Internet. After a few searches, I managed to install the right one on my Windows 11 machine, it appears as WI-FI 3 on Windows. So everything works as expected so far. enter image description here The problem is that I couldn't find a way to install a driver for my Kali Linux Virtual machine. The adapter is getting recognized by the VM but when I run ifconfig it doesn't appear so I asume I dont have a good driver. enter image description here enter image description here Sorry if my problem seems trivial, I'm new to networking and also to linux.
Flaviu Cristian (1 rep)
Sep 5, 2023, 09:22 PM • Last activity: Jul 25, 2025, 07:05 PM
1 votes
1 answers
4350 views
Slow download speed with rtl8821ce on Pop!_OS 18.04
I recently bought a HP 15-da0206ng laptop and since my goal was to finally switch from Windows to Linux I installed the Linux distribution Pop!_OS 18.04 LTS which is built on Ubuntu 18.04 LTS. After I installed the OS, I encountered a problem: No WIFI Adapter was detected. The WIFI Adapter in the HP...
I recently bought a HP 15-da0206ng laptop and since my goal was to finally switch from Windows to Linux I installed the Linux distribution Pop!_OS 18.04 LTS which is built on Ubuntu 18.04 LTS. After I installed the OS, I encountered a problem: No WIFI Adapter was detected. The WIFI Adapter in the HP 15-da0206ng is a Realtek RTL8821CE 802.11b/g/n/ac, according to HP. I quickly found a solution for this: https://askubuntu.com/questions/1071299/how-to-install-wi-fi-driver-for-realtek-rtl8821ce-on-ubuntu-18-04 I disabled secure boot in BIOS, connected my Laptop via cable updated and upgraded and installed the driver and my WIFI Adapter was detected and worked. However, my download speed via wifi is very slow. The terminal and the browsers (Firefox and Chrome) download everything with a speed of around 85 kb/s. According to this site (it is a German site): http://www.speedmeter.de/ my download speed is at 0.6-0.7 mbit/s. My upload speed is at 5 mbit/s which I consider normal. I did the same speed check with my Samsung phone and it reaches a download speed of 102 mbit/s and an upload speed of 5 mbit/s. Something is clearly wrong with the download speed of my Notebook. After researching this problem I found this thread: https://askubuntu.com/questions/1148030/slow-wifi-connection-ubuntu-18-04/1148065?r=SearchResults#1148065 but switching antennas resulted in no difference. Selecting a specific antenna explicitly seems to be a working solution if your wifi signal is not strong, as it is explained here: https://askubuntu.com/questions/1058379/wifi-signal-is-weak-in-ubuntu-18-04-with-rtl8723be In my case I would say that the signal strength is not a problem. As you can see in the results of running
dev wifi list
IN-USE  SSID                            MODE   CHAN  RATE        SIGNAL  BARS  SECURITY  
 *       Burt-Reynolds                   Infra  1     405 Mbit/s  82      ▂▄▆█  WPA2
I also turned of power saving for the wifi adapter as described at the bottom of this readme: https://github.com/tomaspinho/rtl8821ce/blob/master/README.md but it did not make any difference as well. I upgraded the kernel from 4.18 to 4.19 but there was no change. I tried to install Ubuntu (instead of Pop!_OS) 18.04 but here I did not manage to install the rtl8821ce drivers at all. Currently I am running Pop!_OS 19.04 where I can install the drivers again but the download speed is still painful slow. Furthermore I went through this troubleshooting: https://support.system76.com/articles/wireless/ which means I tried to change the router configuration, I disabled IPv6, I enabled Antenna Aggregation, I tried to disable the N mode in /etc/modprobe.d/iwlwifi.conf and I disabled bluetooth coexistence. I am not quite sure what to try anymore and my next steps will be to buy a usb wifi adapter or, the worst case, install Windows again. It seems that most questions related to the rtl8821ce are about getting it not working at all. In my case it works but very slowly. I am not sure if I am missing something obvious and that is why I decided to post this problem here. Here is some additional hardware information:
Intel® Core™ i5-8250U
DDR4-2400 SDRAM, 16 GB      
256 GB PCIe® NVMe™ M.2 SSD
Intel® UHD Graphics 620
Thanks in advance.
Jannik Günther (11 rep)
Jun 15, 2019, 12:24 PM • Last activity: Jul 25, 2025, 11:09 AM
0 votes
1 answers
2294 views
Bluetooth Pairing on Dual Boot of Windows & Linux Mint/Ubuntu - Stop having to Pair Devices - Not working
I've tried everything mentioned on the answers mentioned in the following post: https://unix.stackexchange.com/questions/255509/bluetooth-pairing-on-dual-boot-of-windows-linux-mint-ubuntu-stop-having-to-p But I've made no progress. A few details about my system: Keyboard: Logitech K380 (Bluetooth) D...
I've tried everything mentioned on the answers mentioned in the following post: https://unix.stackexchange.com/questions/255509/bluetooth-pairing-on-dual-boot-of-windows-linux-mint-ubuntu-stop-having-to-p But I've made no progress. A few details about my system: Keyboard: Logitech K380 (Bluetooth) Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal Windows 10 (Latest edition as of writing this post) After changing my keys in linux to the ones from windows, the keyboard connects for a fraction of a second, before disconnecting, and I'm unable to understand why. My keyboard has 3 profiles that I can switch from and I tried all combinations of profile choice in windows and linux. I've spent quite a few hours on this and any help would be appreciated. Please let me know if I am missing any details that might help.
Mehul Fadnavis (1 rep)
May 12, 2021, 05:38 AM • Last activity: Jul 19, 2025, 11:03 PM
0 votes
0 answers
15 views
Troubles with gpu drivers on Don't Starve
I installed Don't Starve through steam, and this appeared (https://i.sstatic.net/EjSGUPZP.png) It looks like there is a trouble with gpu drivers, i had same problem with kitty terminal, but solved it by installing mesa-amber instead of mesa. How can i solve this problem? lspci -k output: ``` 00:00.0...
I installed Don't Starve through steam, and this appeared (https://i.sstatic.net/EjSGUPZP.png) It looks like there is a trouble with gpu drivers, i had same problem with kitty terminal, but solved it by installing mesa-amber instead of mesa. How can i solve this problem? lspci -k output:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: skl_uncore
lspci: Unable to load libkmod resources: error -2
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
        DeviceName: Onboard IGD
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: i915
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: intel_pch_thermal
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: mei_me
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: ahci
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: snd_hda_intel
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: i801_smbus
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] (rev 83)
        Subsystem: Hewlett-Packard Company Radeon R7 M340
        Kernel driver in use: amdgpu
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: r8169
03:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
        Subsystem: Intel Corporation Dual Band Wireless AC 3165 [Stone Peak 1x1]
        Kernel driver in use: iwlwifi
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
        Subsystem: Hewlett-Packard Company Device 8101
        Kernel driver in use: rtsx_pci
system: arch, made pacman -Syu this morning(before it game didn't work too)
Межпространственный Голубь (1 rep)
Jul 19, 2025, 10:07 AM
7 votes
2 answers
9597 views
How to compile a third party driver into the kernel?
I am using Linux Mint 17.2 on Toshiba c640. As my LAN driver is no more functional, I am using a USB to LAN converter which was provided with some driver installation files. Every time i want to use the device I have to install the drivers manually by running the given commands. So I am requesting u...
I am using Linux Mint 17.2 on Toshiba c640. As my LAN driver is no more functional, I am using a USB to LAN converter which was provided with some driver installation files. Every time i want to use the device I have to install the drivers manually by running the given commands. So I am requesting u guys if u could help me to make it automatically load them after every rebooting. For that purpose manufacturer have given some instructions but since I am not a pro techie I couldn't do it myself. I am providing the details of files. Any help is appreciated. Thank you These are the files: enter image description here Contents are Readme.txt: Note: 1. Please run as root 2. Supported linux kernel range from 2.6.x to 3.8.x 3. CH9x00 module depends on mii and usbnet modules 4. If you want complied this module in kernel, refer to followed a. # cp ch9x00.c ~/2.6.25/driver/net/usb/ b. # cd ~/2.6.25/driver/net/usb/ c. modified Makefile and Kconfig for ch9x00.c Install: # make # make load Uninstall: # make unload Makefile: # This makefile for CH9X00 network adaptor # Makefile for linux 2.6.x - 3.8.x ifneq ($(KERNELRELEASE), ) #call from kernel build system obj-m := ch9x00.o else KERNELDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) load: modprobe mii modprobe usbnet insmod ch9x00.ko unload: rmmod ch9x00 clean: rm -rf *.o *~ core .depend .*.cmd *.mod.c .tmp_versions modules.* Module* endif
Maddyrdm (71 rep)
Aug 11, 2015, 08:16 AM • Last activity: Jul 19, 2025, 03:06 AM
3 votes
1 answers
190 views
nvidia-detect installed but the command not found
I was reinstalling nvidia driver on my Debian 12, but couldn't get `nvidia-detect` working: it is installed and can be seen from `apt list` but the command is not found. ``` $ apt search nvidia-detect nvidia-detect/unknown,now 570.172.08-1 amd64 [installed] Transitional dummy package $ apt list --in...
I was reinstalling nvidia driver on my Debian 12, but couldn't get nvidia-detect working: it is installed and can be seen from apt list but the command is not found.
$ apt search nvidia-detect
nvidia-detect/unknown,now 570.172.08-1 amd64 [installed]
  Transitional dummy package

$ apt list --installed | ag nvidia
nvidia-detet/unknown,now 570.172.08-1 amd64 [installed]

$ nvidia-detect
bash: nvidia-detect: command not found
Why is nvidia-detect a **Transitional dummy package**? and why can't I use it? What is the problem here?
Rahn (289 rep)
Jul 18, 2025, 03:06 PM • Last activity: Jul 18, 2025, 05:45 PM
3 votes
1 answers
3753 views
RT3290 Wireless still not working
I've been trying to get my wireless working for two weeks now. I have 1814:3290 wireless card. I am on Linux Mint 14 64-bit. I have tried all the suggestion on here: https://askubuntu.com/questions/240553/how-do-i-install-ra3290-bin-wireless-driver-into-lib-firmware http://ubuntuforums.org/showthrea...
I've been trying to get my wireless working for two weeks now. I have 1814:3290 wireless card. I am on Linux Mint 14 64-bit. I have tried all the suggestion on here: https://askubuntu.com/questions/240553/how-do-i-install-ra3290-bin-wireless-driver-into-lib-firmware http://ubuntuforums.org/showthread.php?t=2104129 https://askubuntu.com/questions/240553/how-do-i-install-ra3290-bin-wireless-driver-into-lib-firmware I updated my kernel to 3.8.5-030805-generic. The first thing I tried was compiling the drivers (using original kernel 3.5.0-17-generic). When I compiled and installed, my wireless worked, but, I kept getting kernel panics every time I logged in. So I modprobe -r rt3290sta. After that I tried updating the kernel to the one I have now and copying the bin file. The kernel saw the wireless card but it was not active or anything. I checked rfkill and nothing was blocked. So then I tried compiling the drivers again after make clean first. Now when I try to compile the drivers I get this: /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:43:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_remove_one’ /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:44:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_probe’ /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:63:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__devinitdata’ /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:85:17: error: ‘rt2860_pci_tbl’ undeclared here (not in a function) /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:86:17: error: ‘rt2860_probe’ undeclared here (not in a function) /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:88:5: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration] /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:88:29: error: ‘rt2860_remove_one’ undeclared here (not in a function) /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:292:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_probe’ /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:463:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_remove_one’ /home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:71:1: error: ‘__mod_pci_device_table’ aliased to undefined symbol ‘rt2860_pci_tbl’ cc1: some warnings being treated as errors make: *** [/home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.o] Error 1 make: *** [_module_/home/dis/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux] Error 2 make: Leaving directory `/usr/src/linux-headers-3.8.5-030805-generic' make: *** [LINUX] Error 2 Everything is up to date also. I'm not sure where to go from here. Maybe I should downgrade my kernel to 3.6 or 3.7? Edit: So I downgrade my kernel to 3.7.2 and recompiled the drivers. The kernel sees my wireless card but doesn't really seem to work and everything freezes. Going to try kernel 3.6. Edit2: After more testing I found out that 3.7.2 and 3.6.11 both give me kernel panics after installing the wireless driver. Edi3: I installed 3.7.11 and compiled and installed the wireless drivers. Wireless worked for 3 seconds and then had a kernel panic.
vis.15 (171 rep)
Apr 3, 2013, 11:35 PM • Last activity: Jul 16, 2025, 03:09 PM
1 votes
1 answers
4898 views
How to install DisplayLink driver on LinuxMint 17.3
I have a USB 3.0 docking station connected with my laptop having LinuxMint 17.3. I can't manage to install DisplayLink driver on it. I could make it work with Ubuntu 15.04, but with LinuxMint it wan't recognize external monitor, even though there is no error message during the install procedure. I t...
I have a USB 3.0 docking station connected with my laptop having LinuxMint 17.3. I can't manage to install DisplayLink driver on it. I could make it work with Ubuntu 15.04, but with LinuxMint it wan't recognize external monitor, even though there is no error message during the install procedure. I tried to follow some proposal on DisplayLink forum , and I tried to modify installation file so SYSTEMINITDAEMON had systemd or upstart values, but none of these worked. Since I already found some posts reported it worked for LinuxMint 17.2, I guess it's possible, but I couldn't find exact instructions if something else should be changed in installation script.
zoran jeremic (111 rep)
Jan 22, 2016, 07:48 PM • Last activity: Jul 14, 2025, 11:12 PM
24 votes
7 answers
53283 views
Prevent a USB external hard drive from sleeping
Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing that smells of nice unixey elegance. There must be a hdparm, or scsi command that I can issue (usb drive...
Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing that smells of nice unixey elegance. There must be a hdparm, or scsi command that I can issue (usb drives are accessed via the sd driver in OpenBSD) to the drive to tell it to not sleep. I'm afraid that this is probably a *feature* built into the controller in the enclosure, and as such not much can change it aside from ripping the drive out of it's enclosure and plopping it directly in the machine, but I figured I would ask, on the off chance. Ideally, I'm looking for an OpenBSD solution, but I know there are others out there w/the same problem so any solutions will be considered for the answer.
gabe. (12124 rep)
Dec 29, 2010, 05:50 AM • Last activity: Jul 14, 2025, 05:07 PM
77 votes
12 answers
145305 views
Bluetooth won't turn On on Ubuntu 20.04
I recently installed ubuntu 20.04 and bluetooth seemed to work out-of-the-box. Yesterday, it stopped working with no known reason. I can turn it ON but the settings still show it to be OFF.[![enter image description here][1]][1] I tried the following: ```console $ sudo -i $ rfkill list 0: phy0: Wire...
I recently installed ubuntu 20.04 and bluetooth seemed to work out-of-the-box. Yesterday, it stopped working with no known reason. I can turn it ON but the settings still show it to be OFF.enter image description here I tried the following:
$ sudo -i
$ rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
3: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
and on running bluetoothctl,
Agent registered
[bluetooth]# power off
No default controller available
[bluetooth]# power on
No default controller available
[bluetooth]# exit
What could be the problem and how to tackle it ?
Pe Dro (1509 rep)
Sep 6, 2020, 08:57 AM • Last activity: Jul 11, 2025, 05:40 PM
0 votes
0 answers
29 views
Additional steps for blacklisting compiled in kernel drivers
I am having a conflict with third party moxa driver `mxupcie` and the default linux `8250_moxa` which is compiled in. I have been following [this](https://unix.stackexchange.com/questions/276392/how-to-block-drivers-built-into-kernel-i-e-drivers-who-are-not-a-module) thread but still having issues....
I am having a conflict with third party moxa driver mxupcie and the default linux 8250_moxa which is compiled in. I have been following [this](https://unix.stackexchange.com/questions/276392/how-to-block-drivers-built-into-kernel-i-e-drivers-who-are-not-a-module) thread but still having issues. -bash-4.2$ lspci -vvv -s8a:00.0 8a:00.0 Serial controller: Moxa Technologies Co Ltd CP-118EL-A (8-port RS-232/422/485 PCI Express Serial Board) (prog-if 02 ) Subsystem: Moxa Technologies Co Ltd CP-118EL-A (8-port RS-232/422/485 PCI Express Serial Board) Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel modules: 8250_moxa, mxupcie There are quite a few symbols containing 8250 but looking through the source it appears that serial8250_init is the __init function for multiple serial drivers. I added the initcall_blacklist entry to my kernel parameters using the command below and rebooted but I am still seeing the same thing. grubby --update-kernel=ALL --args="initcall_blacklist=serial8250_init" After reboot I still see the same behavior -bash-4.2$ cat /proc/cmdline BOOT_IMAGE=/vmlinuz-4.9.220-rt143-RedHawk-7.5.5-trace root=/dev/mapper/vg00-root ro crashkernel=auto rd.md.uuid=2bc7cf35:ce34a47b:9688d2a0:1c0ea085 rd.lvm.lv=vg00/root rd.lvm.lv=vg00/swap rhgb quiet initcall_blacklist=serial8250_init I initially assumed that I chose the wrong __init function, which I guess I still might have, but looking at the System.map I can see that the symbol is still there, which I don't believe it should be. -bash-4.2$ cat /boot/System.map-uname -r |grep serial8250_init ffffffff813d81e0 T serial8250_init_port ffffffff81a0bc70 r __ksymtab_serial8250_init_port ffffffff81a288db r __kstrtab_serial8250_init_port ffffffff8202a6d2 t serial8250_init ffffffff820d4a20 t __initcall_serial8250_init6 I've never done this before, so I assume I am missing a step. What else do I need to do?
mreff556 (1 rep)
Jul 10, 2025, 05:59 PM
Showing page 1 of 20 total questions