Giter VIP home page Giter VIP logo

Comments (7)

Benedolt avatar Benedolt commented on June 10, 2024

Same here! Switching on temp support in the menu also doesn't work. It's just stuck on "false".

from bashtop.

toikpi avatar toikpi commented on June 10, 2024

I encountered the same problem on Ubuntu 20.04 x86 64 bit. I wonder if the problem is a seccomp violation.

CPU Temperature monitoring not available in the snap but works when bashtop is installed from source.

I installed the snap and ran bashtop. I used the Options sub-menu and found that it was not possible to "check temp" option to true.

I resinstalled the snap in developer mode and examined the system log as described on the Snapcraft site (https://snapcraft.io/docs/debug-snaps). I excluded the ALLOWED and STATUS entries and was left with a single entry with a SECCOMP violation when the script tries to call sed.

Here is a tidied version of my checks.

$ cat !$
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
$ 
$ uname -a
Linux hostname 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ 
$ sudo journalctl --since "2020-08-27 07:30:00" | grep audit | grep bashtop | grep -v -e ALLOWED -e STATUS
Aug 27 07:40:39 hostname audit[7926]: SECCOMP auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7926 comm="sed" exe="/snap/bashtop/122/bin/sed" sig=0 arch=c000003e syscall=93 compat=0 ip=0x7efc5bcbb527 code=0x7ffc0000
$ 
$ sudo journalctl --since "2020-08-27 07:30:00" | grep audit | grep bashtop | grep -i sensor
$

I wonder if the SECCOMP log message indicates a wider problem which means that the sensors binary contained in the snap is not visible to the bashtop script. See - https://snapcraft.io/docs/debug-snaps#heading--seccomp.

I then removed the snap and installed bashtop from source and found that CPU temperature monitoring works.

Thanks in advance.

from bashtop.

toikpi avatar toikpi commented on June 10, 2024

I noticed the snap connect ... commands on Snapcraft (https://snapcraft.io/install/bashtop/ubuntu). I removed the install of bashtop from source, reinstalled the snap and ran the listed snap connect commands. I then ran bashtop, it locked up on the "splash" page when checking memory.

I have reverted to the install from source.

Sorry to provide more bad news.

from bashtop.

Benedolt avatar Benedolt commented on June 10, 2024

Just FYI: I've switched to using the bpytop snap where temps display works. (Bpytop is a python reimplementation of bashtop by the original developer. They recommend using that as they aren't actively developing bashtop any more.)

from bashtop.

toikpi avatar toikpi commented on June 10, 2024

@Benedolt thanks for the update.
I have installed your snap of bpytop as you suggested. It worked straight away.
Thank you for your effort (and snaps).

from bashtop.

Benedolt avatar Benedolt commented on June 10, 2024

@toikpi Glad it works for you! It's not my snap, though. That's all @kz6fittycent :)

from bashtop.

kz6fittycent avatar kz6fittycent commented on June 10, 2024

That particular switch (temp) seems to glitch when first turning "on" and I don't know why. I noticed the same thing when running the .deb on an Ubuntu server I have at work. I typically have to switch the "tree" setting a couple of times, too. Given that I'm seeing the same issue between the .deb version and the snap, I've just chalked it up to the software itself.

That said, did you ensure that you have all the snap connections? If you don't, then that switch will never work -ever.

sudo snap connect bashtop:mount-observe

sudo snap connect bashtop:network-control

sudo snap connect bashtop:hardware-observe

sudo snap connect bashtop:system-observe

sudo snap connect bashtop:process-control

from bashtop.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.