Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-24 14:06:26

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 151

xfce4-sensors and hddtemp

I have made a new installation of Fedora 40 XFCE on my workstation (I was with F34).
I had "sensors-plugin" in the panel, configured to display disks and cpu temperatures, voltage and fan rpm.
During the first (+-10) boots everything was working fine, but suddenly the plugin has stopped displaying the second disk temperature. I was reconfiguring it every boot, but after reboot it was the same - plugin forgot about the second disk (a bit like https://forum.xfce.org/viewtopic.php?id=11396).
I made a mistake (I guess) by launching the "chmod u+s /usr/bin/hddtemp" command, as a result, I have lost the disks section in the plugin and "Hddtemp Information" notifications  appeared (https://forum.xfce.org/viewtopic.php?id=7032 ).
I uninstalled hddtemp, sensors-plugin and lm-sensors and reinstalled them again, with no result...
I have removed the sensors-plugin and deleted the panel where it was, but the notifications are still there.
In ~/.config/xfce4/panel/xfce4-sensors-plugin-XX.rc there is "Suppress_Hddtemp_Message=true", which in theory stops the notifications, but I have uninstalled the plugin and I don't have this file...
If I launch "sensors" as root, everything is fine and there is disk temperature.
Any idea how to fix it (both, notifications and the lack of disks in the plugin)?

In fedora /user/bin/hddtemp is just a shortcut, not an executable, can this have anything to do with it?

Offline

#2 2024-08-24 17:57:36

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,481

Re: xfce4-sensors and hddtemp

peter.48 wrote:

In fedora /user/bin/hddtemp is just a shortcut, not an executable, can this have anything to do with it?

What does the following return:

file /usr/bin/hddtemp
stat /usr/bin/hddtemp

...it should be a compiled file.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-08-24 18:31:45

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 151

Re: xfce4-sensors and hddtemp

"ls -l" results "lrwxrwxrwx", "l" stands for link.
I will send you the return in a moment...

Offline

#4 2024-08-24 18:43:21

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 151

Re: xfce4-sensors and hddtemp

Return:

[peter@xfce40precision Desktop]$ file /usr/bin/hddtemp
/usr/bin/hddtemp: symbolic link to consolehelper
[peter@xfce40precision Desktop]$ stat /usr/bin/hddtemp
  Fichero: /usr/bin/hddtemp -> consolehelper
  Tamaño: 13        	Bloques: 0          Bloque E/S: 4096   enlace simbólico
Device: 8,4	Inode: 1755151     Links: 1
Acceso: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Contexto: system_u:object_r:bin_t:s0
      Acceso: 2024-01-24 01:00:00.000000000 +0100
Modificación: 2024-01-24 01:00:00.000000000 +0100
      Cambio: 2024-08-23 21:22:29.051037602 +0200
    Creación: 2024-08-23 21:22:29.018037203 +0200 

I don't know if it is relevant:

[peter@xfce40precision Desktop]$ ls -l /sbin/hddtemp 
-rwsr-sr-x. 1 root root 41672 ene 24  2024 /sbin/hddtemp
[peter@xfce40precision Desktop]$ ls -l /usr/sbin/hddtemp 
-rwsr-sr-x. 1 root root 41672 ene 24  2024 /usr/sbin/hddtemp 

Offline

#5 2024-08-24 19:28:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,481

Re: xfce4-sensors and hddtemp

Ahhh. Fedora uses consolehelper. The actual file in /usr/sbin and the configuration for it in /etc/security/console.apps. It basically bypasses the need to enter an elevated password to run the command

What happens of you run the command on a terminal directly:

hddtemp /dev/XXX

...where XXX is your drive designation?

I made a mistake (I guess) by launching the "chmod u+s /usr/bin/hddtemp" command, as a result, I have lost the disks section in the plugin and "Hddtemp Information" notifications  appeared

That shouldn't have a negative effect (though you could reverse it with "chmod u+s /usr/bin/hddtemp"). Something else must be the issue. Lets see what the above command returns.

Also, what does the following return:

ls -l ~/.config/xfce4/panel

...and:

cat ~/.config/xfce4/panel/*sensors*

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2024-08-24 19:48:04

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 151

Re: xfce4-sensors and hddtemp

Hddtemp works fine in the console, no problem here, as I have written xfce-sensors too (but only as root).

[peter@xfce40precision Desktop]$ ls -l ~/.config/xfce4/panel
total 56
-rw-r--r--. 1 peter peter  405 ago 24 20:33 battery-25.rc
-rw-r--r--. 1 peter peter  404 ago 24 20:33 battery-27.rc
-rw-r--r--. 1 peter peter   30 ago 24 20:33 eyes-26.rc
drwx------. 2 peter peter 4096 ago 22 19:44 launcher-10
drwx------. 2 peter peter 4096 ago 23 16:45 launcher-15
drwx------. 2 peter peter 4096 ago 23 16:47 launcher-16
drwx------. 2 peter peter 4096 ago 23 16:48 launcher-17
drwx------. 2 peter peter 4096 ago 23 16:49 launcher-18
drwx------. 2 peter peter 4096 ago 23 16:50 launcher-19
drwx------. 2 peter peter 4096 ago 22 19:42 launcher-20
drwx------. 2 peter peter 4096 ago 23 16:42 launcher-23
drwx------. 2 peter peter 4096 ago 23 16:57 launcher-29
drwx------. 2 peter peter 4096 ago 23 16:44 launcher-7
drwx------. 2 peter peter 4096 ago 22 19:44 launcher-8

[peter@xfce40precision Desktop]$ cat ~/.config/xfce4/panel/*sensors*
cat: '/home/peter/.config/xfce4/panel/*sensors*': No existe el fichero o el directorio 

Offline

#7 2024-08-24 19:52:54

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 151

Re: xfce4-sensors and hddtemp

I forgot: hddtemp works only as root too sad

Offline

#8 2024-08-24 21:32:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,481

Re: xfce4-sensors and hddtemp

Looks like you've removed you sensor plugin from the panel. Can you re-add and post back the contents of it's .rc file?

I forgot: hddtemp works only as root too

There is something wrong with your consolehelper set up - it should run without asking for a password. You might want to ask in the fedora forums as to why? I have no experience with consolehelper.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2024-08-25 08:01:27

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 151

Re: xfce4-sensors and hddtemp

I re-added the sensors-plugin, .rc contents:

[General]
Lines_Size=5
Preferred_Height=427
Number_Chips=5

[Chip0]
Name=coretemp-0
Number=0

[Chip0_Feature0]
Address=0
Name=cpu
Color=#00B000
Show=true
Min=0
Max=42

[Chip1]
Name=BAT0-0
Number=1

[Chip1_Feature0]
Address=0
Name=bat
Color=#00B000
Show=true
Min=1
Max=12.199999809265137

[Chip2]
Name=dell_smm-0
Number=2

[Chip2_Feature0]
Address=0
Name=fan
Color=#00B000
Show=true
Min=0
Max=3500

[Chip3]
Name=acpitz-0
Number=3

[Chip4]
Name=ACPI
Number=4

I also reverted "chmod" of "hddtemp", no result.

To test, on another laptop I made a new installation of F40, same as workstation. here sensors-plugin works fine (there are disks - Chip5), there are no hddtemp notifications. Here is .rc content:

[General]
Suppress_Tooltip=true
Preferred_Height=450
Number_Chips=7

[Chip0]
Name=coretemp-0
Number=0

[Chip1]
Name=BAT0-0
Number=1

[Chip2]
Name=iwlwifi_1-0
Number=2

[Chip3]
Name=dell_smm-0
Number=3

[Chip3_Feature0]
Address=0
Name=fan
Color=#00B000
Show=true
Min=0
Max=3500

[Chip3_Feature1]
Address=1
Name=cpu
Color=#00B000
Show=true
Min=0
Max=80

[Chip4]
Name=acpitz-0
Number=4

[Chip5]
Name=Hard disks
Number=5

[Chip5_Feature1]
Address=1
Name=ssd
Color=#B000B0
Show=true
Min=20
Max=60

[Chip6]
Name=ACPI
Number=6

[Chip6_Feature11]
Address=11
Name=bat
Color=#00B0B0
Show=true
Min=7.4000000953674316
Max=7.9159998893737793
[peter@7450xfce Desktop]$ ls -l /bin/hddtemp
lrwxrwxrwx. 1 root root 13 ene 24  2024 /bin/hddtemp -> consolehelper
[peter@7450xfce Desktop]$ ls -l /usr/bin/hddtemp
lrwxrwxrwx. 1 root root 13 ene 24  2024 /usr/bin/hddtemp -> consolehelper
[peter@7450xfce Desktop]$ ls -l /sbin/hddtemp
-rwxr-xr-x. 1 root root 41672 ene 24  2024 /sbin/hddtemp
[peter@7450xfce Desktop]$ ls -l /usr/sbin/hddtemp
-rwxr-xr-x. 1 root root 41672 ene 24  2024 /usr/sbin/hddtemp

Last edited by peter.48 (2024-08-25 08:04:32)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 576.7 KiB (Peak: 593.98 KiB) ]