Nbfc connection refused

Hello,

i installed nbfc from yay - S nbfc
everything worked well first time i launched it.
Then, at reboot i try to launch it again and i get : connection refused.

systemctl status nbfc                                     ✔  3s  
● nbfc.service - NoteBook FanControl service
     Loaded: loaded (/etc/systemd/system/nbfc.service; enabled; vendor preset: >
     Active: active (running) since Thu 2021-10-21 09:12:29 CEST; 12min ago
   Main PID: 742 (mono)
      Tasks: 12 (limit: 28689)
     Memory: 38.5M
        CPU: 7.056s
     CGroup: /system.slice/nbfc.service
             └─742 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -l:/run/nbf>

oct. 21 09:12:29 manjaro systemd[1]: Starting NoteBook FanControl service...
oct. 21 09:12:29 manjaro systemd[1]: nbfc.service: Can't open PID file /run/nbf>
oct. 21 09:12:29 manjaro systemd[1]: Started NoteBook FanControl service.
oct. 21 09:12:30 manjaro mono[742]: NbfcService: Service NoteBookFanControlServ>
 nbfc config --apply "Asus Zenbook UX410UQ"                       ✔ 
Connection refused

Thank you for help

Hello,

Moved to #support:aur
If you check the comments from AUR (en) - nbfc then most users suggest to use another package, like nbfc-linux or nbfc-git … The one you installed has to be run as described in this discussion:
[SOLVED][systemd] daemon does not start shell script after login / Newbie Corner / Arch Linux Forums

Hello,

thank for moving the post and for your response. I think it isn’t the same problem, what i don’t understand is that if i remove nbfc with yay -R nbfc and reinstall it, it will works:


 sudo systemctl enable nbfc --now                         ✔  10s  
Created symlink /etc/systemd/system/multi-user.target.wants/nbfc.service → /etc/systemd/system/nbfc.service.
    ~  nbfc config --apply "Asus Zenbook UX410UQ"                       ✔ 
    ~  nbfc status -a                                                   ✔ 
Service enabled		: True
Read-only		: False
Selected config name	: Asus Zenbook UX410UQ
Temperature		: 36

Fan display name	: Fan #1
Auto control enabled	: True
Critical mode enabled	: False
Current fan speed	: 0.00
Target fan speed	: 0.00
Fan speed steps		: 8

when i reboot and try to launch nbfc again it will fail with: “connection refused”

Thank you

What do you mean? Once you enabled a service it will automatically start at next reboot.

nbfc status -a                                                   ✔ 
Connection refused
    ~  systemctl status nbfc                                            ✔ 
● nbfc.service - NoteBook FanControl service
     Loaded: loaded (/etc/systemd/system/nbfc.service; enabled; vendor preset: >
     Active: active (running) since Thu 2021-10-21 10:26:43 CEST; 41s ago
    Process: 694 ExecStart=/opt/nbfc/nbfcservice.sh start (code=exited, status=>
   Main PID: 702 (mono)
      Tasks: 11 (limit: 28689)
     Memory: 34.9M
        CPU: 1.388s
     CGroup: /system.slice/nbfc.service
             └─702 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -l:/run/nbf>

oct. 21 10:26:43 manjaro systemd[1]: Starting NoteBook FanControl service...
oct. 21 10:26:43 manjaro systemd[1]: nbfc.service: Can't open PID file /run/nbf>
oct. 21 10:26:43 manjaro systemd[1]: Started NoteBook FanControl service.
oct. 21 10:26:44 manjaro mono[702]: NbfcService: Service NoteBookFanControlServ>
lines 1-15/15 (END)

After reboot the nbfc service seems launched but any command with nbfc output “connection refused”

See if this comment helps AUR (en) - nbfc

I think i have the same problem :

erdosb commented on [2018-02-08 10:11]

if I run ‘mono /opt/nbfc/nbfc.exe status -a’ (or 'bash -c ‘nbfc status -a’ to get rid of the fish shell caused problem) I get the following error: “Connection refused” (I also tried with sudo, but got the same.) Any help is appreciated.

Remind you that AUR is Arch User Repository, it is created for Arch, it is unsupported on Arch and it is unsupported on Manjaro.