tsapi
17 November 2024 11:25
1
Hi all!
I tried to rum mhwd yesterday, but it refuses to run:
sudo mhwd
Error: Following directories do not exist:
> /var/lib/mhwd/db/usb
> /var/lib/mhwd/local/usb
I reinstalled it (pacman -S mhwd) but the error persists.
I googled for the problem - found no obvious help.
Checked about these directories in my system - they don’t exist.
ls -lah /var/lib/mhwd/db
Summary
drwxr-xr-x 3 root root 4,0K Νοε 13 22:46 .
drwxr-xr-x 6 root root 4,0K Αυγ 12 14:01 ..
drwxr-xr-x 4 root root 4,0K Αυγ 20 18:56 pci
ls -lah /var/lib/mhwd/local
Summary
drwxr-xr-x 3 root root 4,0K Νοε 13 22:46 .
drwxr-xr-x 6 root root 4,0K Αυγ 12 14:01 ..
drwxr-xr-x 3 root root 4,0K Αυγ 20 18:56 pci
I understand that I can create these directories manually (with correct permissions, writable only by root) - but I thought I d ask here first and report the problem first.
There is more than mhwd
:
pacman -Ss mhwd
extra/bmenu 0.25-1
Bash scripts providing a collection of terminal applications in a simple UI
extra/mhwd 0.6.5-36 [installed]
Manjaro Linux Hardware Detection library and application
extra/mhwd-amdgpu 19.1.0-1 [installed]
MHWD module-ids for amdgpu
extra/mhwd-ati 19.1.0-1 [installed]
MHWD module-ids for ati 19.1.0
extra/mhwd-db 0.6.5-36 [installed]
Manjaro Linux Hardware Detection Database
extra/mhwd-nvidia 550.120-1 [installed]
MHWD module-ids for nvidia 550.120
extra/mhwd-nvidia-390xx 390.157-14 [installed]
MHWD module-ids for nvidia 390.157
extra/mhwd-nvidia-470xx 470.256.02-4 [installed]
MHWD module-ids for nvidia 470.256.02
brahma
17 November 2024 16:28
3
had the same issue, created the 2 missing directories, now everything works…
What version of mhwd
& mhwd-db
do you have installed?
pacman -Qi mhwd mhwd-db | grep Version
No matter which version, mhwd
installs both these directories:
❯ pacman -Qo /var/lib/mhwd/{db,local}/usb
/var/lib/mhwd/db/usb/ is owned by mhwd 0.6.6-1
/var/lib/mhwd/local/usb/ is owned by mhwd 0.6.6-1
From up-to-date testing channel:
$ pacman -Qi mhwd mhwd-db | grep Version
Version : 0.6.6-1
Version : 20241117-1
$ pacman -Qo /var/lib/mhwd/{db,local}/usb
error: No package owns /var/lib/mhwd/db/usb
error: No package owns /var/lib/mhwd/local/usb
$ pacman -Qkk mhwd mhwd-db
mhwd: 15 total files, 0 altered files
mhwd-db: 51 total files, 0 altered files
Ah, I just realized what happened. I’ll push 0.6.6-2 here shortly.
4 Likes
Molski
17 November 2024 18:05
7
Happened to me yesterday when I changed one instance to the testing branch.
So what are the permissions on those folders?
e.g: owner:group 775 ?
tsapi
17 November 2024 19:53
8
Forgot to mention that I am on the testing branch…
pacman -Qi mhwd mhwd-db | grep Version
Version : 0.6.6-1
Version : 20240506-2
root:root, 755
I have created the directories manually, so mhwd runs fine. But I guess pushing a version which corrects the problem is the correct solution. Thanks!
1 Like
Molski
17 November 2024 20:17
9
$ mhwd
Error: Following directories do not exist:
> /var/lib/mhwd/db/usb
> /var/lib/mhwd/local/usb
Copy/pasta fix:
$ sudo mkdir /var/lib/mhwd/db/usb /var/lib/mhwd/local/usb
$ sudo chown root:root /var/lib/mhwd/db/usb /var/lib/mhwd/local/usb
$ sudo chmod 775 /var/lib/mhwd/db/usb /var/lib/mhwd/local/usb
Working.
$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-virtualmachine 2024.05.06 true PCI
video-modesetting 2020.01.13 true PCI
video-linux 2024.05.06 true PCI
video-nvidia 2024.05.03 false PCI
Warning: No installed USB configs!
Molski:
yesterday
…is no longer relevant.
Have you updated to 0.6.6-2 yet?
Molski
17 November 2024 21:10
11
I checked for updates not long before posting.
I see it now.
[tracy@daphne ~]$ mhwd -v
Manjaro Hardware Detection v0.6.5
Copyright (C) 2012-2020 Manjaro Linux Developers
This is free software licensed under GNU GPL v3.0
FITNESS FOR A PARTICULAR PURPOSE
What is the point of those Directories? on my set up they are empty.
cscs
17 November 2024 21:39
13
One would guess they would contain some sort of drivers provided over USB.
But in all the years of its existence, I dont recall if mhwd
ever did provide any such drivers.
And it certainly does not now.
The paths are like this:
/var/lib/mhwd/db/
= for available mhwd profiles
/var/lib/mhwd/local/
= for installed mhwd profiles
1 Like
Don’t forget to update your user profile via Forum Profile Preferences to reflect that you are no longer on on Stable branch.
1 Like
system
Closed
20 November 2024 23:33
15
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.