-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What to do when I'm getting Encountered an unexpected error. (Dell)
#79
Comments
This is how it works. You can test everything with command line. Check for executable installedFirst it will check if the below file exist. if it exist it, knows it is a dell laptop. But I think it has detected it as the Dell is mentioned in the error, but no harm checking.
For dell you need to install either one of the package. libsmbios or Dell command center. Some laptop libsmbios works but Dell command center does not, but on others laptop Dell command center works but libsmbios does not. extensionis check if program is available in enviroment. If it doesnt find the path it will check for the default installation location. You can try test this by running the command
Default installation location
It does the same for Dell command center.
Default installation location
It willl use the package that is installed. If both are install, you will get an option to choose in extension preferences between Dell command center and libsmbios. Test if charging mode changes using command line.
|
So if it wouldn't work with And if everything is working as expected is there any log or so where the extensions shows more details or a stacktrace? PS: Your description is amazing! Also thank you so much for the extension! 🙏 |
Yes everything seem fine from your end. No there are no logs. I added few logs, that will show me what command are execute and what are the response. Kindly install this test.zip and check the log How did you manage to get time taken to execution the command in terminal? never new that trick. Also I saw pkexec commands took 3 second. Could use sudo and run those commands again. Just to check how long it takes, so that entering password time is not accounted. |
I'd love to but how do I do that?
Actually I'm not sure where this is coming from. I'm using Starship for my shell and I think that it is responsible for that output.
The time was because of the password entering 😉 |
Extract the test.zip. open the folder. Either right click on file install.sh and run as program. Or you can open terminal and type ./install.sh |
Hello @maniacx, I'm very sorry for the late response. I think now it stopped working completely.
|
Install this and send me the logs again. |
here you are:
thank you so much for your help! 🥺 |
There are two issues, that I see.
But the extension errors out.
|
Also I think you may have already move to GNOME46. And the test2 I gave you was still an older version (Sorry I was lazy) |
I'm seeing this:
Exactly, it's Fedora Linux 40 with GNOME 46.
I don't see the JS exception anymore but I'm still seeing the aforementioned notification in GNOME notification tray.
|
For some reason your libsmbios doesn't update your threshold. When I was adding support for Dell, I read that most older laptop works well with libsmbios, but newer laptop have issues with it, but they work with Dell command configure. You could try installing Dell command configure (dcc) And try changing threshold using Dell command configure. If changing threshold works using dcc, you can change setting in extension preference > device to use Dell https://maniacx.github.io/Battery-Health-Charging/device-compatibility/dell |
Since I have fedora 40 too, i tried to install dcc even though my laptop is not dell. First time for me installing rpm package locally. (I could be wrong or there might be a better way) To install I used.
and then
But for me runnning cctk doesnt do anything (May be because my laptop is not dell) To Read threshold
To apply threshold
You can try to apply threshold and read threshold again and check if it reads back the applied threshold. Incase. You want to uninstall dcc you can do it by
Note: Install at your own risk. |
Okay, so for a short moment I thought that I found the culprit: Setting the thresholds via terminal works now: However, the Battery Health Charging extension still shows the very same notification with the error. This is how its log looks like:
The charging mode is now in A little code change for the extension could be that if the charging mode stays at However, it doesn't explain why the extension still doesn't work although setting it via CLI works now. |
So when we change the threshold in libsmbios (or dell command center) it makes changes in the bios, that is how the laptop limits the battery threshold even though the laptop is powered off and not runnning linux/windows os. (Unless dell does it differently, I do not know for sure) And as you can see, libsmbios is not working on your laptop. Look at this post on the link below to check, how it behave on for other dell laptops with libsmbios working. |
Oh, I see. That was my fault. 🫣 So this means that this is an 🐛 I'll close this issue now since I believe that other nothing else than a helpful message can be done here. Thank you for your help! 🙏 |
@alexanderadam Also dell command configure support changing threshold with admin password, and so does this extension. Check the discussion here. Feel free to open this if you have any other issue. |
I'm getting the error
Encountered an unexpected error. (Dell)
on current Fedora on an XPS 13 9300.This message popped up after a recent upgrade and now I'd love to know what I can do to tackle this.
I usually see it after waking up from hibernate and after a reboot.
The text was updated successfully, but these errors were encountered: