[GH-ISSUE #439] File Descriptor does not support writing #395

Closed
opened 2026-02-26 00:32:31 +03:00 by kerem · 11 comments
Owner

Originally created by @GTRONICK on GitHub (Feb 10, 2018).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/439

Hi!, today, I was trying to start the service with:
nbfc start
And the output gives:
File Descriptor does not support writing
And the service does not starts.
I have also navigated to /opt/nbfc, and tried:
mono nbfc.exe start
Which gives the same output.

Originally created by @GTRONICK on GitHub (Feb 10, 2018). Original GitHub issue: https://github.com/hirschmann/nbfc/issues/439 Hi!, today, I was trying to start the service with: `nbfc start` And the output gives: `File Descriptor does not support writing` And the service does not starts. I have also navigated to /opt/nbfc, and tried: `mono nbfc.exe start` Which gives the same output.
kerem 2026-02-26 00:32:31 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@GTRONICK commented on GitHub (Feb 10, 2018):

Ok, after reading some threads, I found the one located here: ttps://github.com/hirschmann/nbfc/issues/436. I have renamed the file ECSysLinux.dll with:

sudo mv /opt/nbfc/Plugins/StagWare.Plugins.ECSysLinux.dll /opt/nbfc/Plugins/StagWare.Plugins.ECSysLinux.dll.old

Then rebooted, and ran:
nbfc start
And the service started again!.

<!-- gh-comment-id:364612174 --> @GTRONICK commented on GitHub (Feb 10, 2018): Ok, after reading some threads, I found the one located here: [ttps://github.com/hirschmann/nbfc/issues/436](https://github.com/hirschmann/nbfc/issues/436). I have renamed the file `ECSysLinux.dll` with: `sudo mv /opt/nbfc/Plugins/StagWare.Plugins.ECSysLinux.dll /opt/nbfc/Plugins/StagWare.Plugins.ECSysLinux.dll.old` Then rebooted, and ran: `nbfc start` And the service started again!.
Author
Owner

@marak8 commented on GitHub (Feb 11, 2018):

I'm using NBFC from AUR on Arch Linux. In my case, the service starts, but it doesn't seem to regulate the fans until I apply the workaround above (rename the DLL). After that, it's enough to

systemctl restart nbfc

and the fan quiets down.

<!-- gh-comment-id:364738590 --> @marak8 commented on GitHub (Feb 11, 2018): I'm using NBFC from AUR on Arch Linux. In my case, the service starts, but it doesn't seem to regulate the fans until I apply the workaround above (rename the DLL). After that, it's enough to systemctl restart nbfc and the fan quiets down.
Author
Owner

@ghost commented on GitHub (Feb 13, 2018):

Confirmed this also. Renaming that plugin allowed it to start without issues. I was getting an error stating that the pid file could not be created. Wondering if that could also cause this?

<!-- gh-comment-id:365243709 --> @ghost commented on GitHub (Feb 13, 2018): Confirmed this also. Renaming that plugin allowed it to start without issues. I was getting an error stating that the pid file could not be created. Wondering if that could also cause this?
Author
Owner

@zetorian commented on GitHub (Feb 15, 2018):

Worked for me as well. I had the pid file error Chris mentioned and the File descriptor issue.
Arch linux - 4.15.3-1
Gigabyte p35w V3

<!-- gh-comment-id:366093936 --> @zetorian commented on GitHub (Feb 15, 2018): Worked for me as well. I had the pid file error Chris mentioned and the File descriptor issue. Arch linux - 4.15.3-1 Gigabyte p35w V3
Author
Owner

@elisaado commented on GitHub (Jun 20, 2018):

I have the PID file issue even when nbfc is working fine so idk if it's really that

<!-- gh-comment-id:398885999 --> @elisaado commented on GitHub (Jun 20, 2018): I have the PID file issue even when nbfc is working fine so idk if it's really that
Author
Owner

@erkexzcx commented on GitHub (Nov 9, 2018):

@hirschmann - Any chance you could fix this issue?

Issue: NBFC does not work on Linux. Says "File Descriptor does not support writing".
Solution: delete StagWare.Plugins.ECSysLinux.dll file. (see this)

Sorry but I do not know C# well - can't investigate on my own, but this workaround is always required and it always works.

<!-- gh-comment-id:437444995 --> @erkexzcx commented on GitHub (Nov 9, 2018): @hirschmann - Any chance you could fix this issue? **Issue**: NBFC does not work on Linux. Says "File Descriptor does not support writing". **Solution**: delete `StagWare.Plugins.ECSysLinux.dll` file. (see [this](https://wiki.archlinux.org/index.php/Fan_speed_control#Configuration_2)) Sorry but I do not know C# well - can't investigate on my own, but this workaround is **always** required and it always works.
Author
Owner

@lss4 commented on GitHub (Oct 21, 2019):

The fix above is also needed on my laptop, ASUS ROG STRIX GL702ZC.

Is there a way to gracefully get around the issue if the plugin is not compatible with a given laptop? I mean, to disable the plugin if it turned out to be incompatible so deleting the dll would be unnecessary. Otherwise I'll always have to manually edit the PKGBUILD whenever there's an update on AUR (to delete the file during install process).

<!-- gh-comment-id:544308452 --> @lss4 commented on GitHub (Oct 21, 2019): The fix above is also needed on my laptop, ASUS ROG STRIX GL702ZC. Is there a way to gracefully get around the issue if the plugin is not compatible with a given laptop? I mean, to disable the plugin if it turned out to be incompatible so deleting the dll would be unnecessary. Otherwise I'll always have to manually edit the PKGBUILD whenever there's an update on AUR (to delete the file during install process).
Author
Owner

@bbaserdem commented on GitHub (Apr 22, 2020):

I have the same problem; any updates on this? Deleting the dll does solve the problem; but if we could get a fix that would be much better.

<!-- gh-comment-id:617846191 --> @bbaserdem commented on GitHub (Apr 22, 2020): I have the same problem; any updates on this? Deleting the dll does solve the problem; but if we could get a fix that would be much better.
Author
Owner

@lss4 commented on GitHub (Apr 23, 2020):

It seems as of some recent build of nbfc (built from nbfc-git AUR), it could now run without deleting the offending DLL. And there's now a formal GL702ZC profile (previously the GL702VM profile is used as a best match).

Not sure if this is due to ec_sys.write_support=1 parameter. I've put this argument for quite a long time in my system and back then this parameter did not solve the problem (the error persisted) and I certainly needed to delete that DLL to get nbfc running.

<!-- gh-comment-id:618117547 --> @lss4 commented on GitHub (Apr 23, 2020): It seems as of some recent build of nbfc (built from nbfc-git AUR), it could now run without deleting the offending DLL. And there's now a formal GL702ZC profile (previously the GL702VM profile is used as a best match). Not sure if this is due to `ec_sys.write_support=1` parameter. I've put this argument for quite a long time in my system and back then this parameter did not solve the problem (the error persisted) and I certainly needed to delete that DLL to get nbfc running.
Author
Owner

@bbaserdem commented on GitHub (Apr 23, 2020):

From what I understand; the ec_sys.write_support=1 command does undo some kernel lockdown features; leading to vulnerabilities. (Something I have read, don't quite understand.) Removing the offending dll for now seems to be the more prudent fix; please correct me if I am wrong.

<!-- gh-comment-id:618509090 --> @bbaserdem commented on GitHub (Apr 23, 2020): From what I understand; the `ec_sys.write_support=1` command does undo some kernel lockdown features; leading to vulnerabilities. (Something I have read, don't quite understand.) Removing the offending dll for now seems to be the more prudent fix; please correct me if I am wrong.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 22, 2020):

This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed

<!-- gh-comment-id:714024795 --> @github-actions[bot] commented on GitHub (Oct 22, 2020): This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#395
No description provided.