Git Product home page Git Product logo

Comments (11)

liskin avatar liskin commented on August 17, 2024 1

I've been using -threaded -with-rtsopts=-V0 to make xmobar/xmonad less watt-hungry for a few years. I'm not sure how safe this is and I'd be hesitant to just put it into xmobar.cabal, but I've had it there for years and it hasn't caused problems. But it's kind of sad that this is still a problem with GHC 8. :-/

from xmobar.

jaor avatar jaor commented on August 17, 2024

However installing xmobar with cabal install xmobar
--ghc-options=-threaded doesn't make a difference - xmobar still
produces around 75 wakups/s.

Does giving cabal install the with_threaded flag solve the issue?

cabal install xmobar --flags=with_threaded

from xmobar.

christianlask avatar christianlask commented on August 17, 2024

Not any better here with 7.6.2, compiled with '--flags="with_mpd with_dbus with_inotify with_utf8 with_xft with_threaded"' and with '--ghc-options="-threaded"', too. Around 100 events per second, according to powertop. :(

from xmobar.

jaor avatar jaor commented on August 17, 2024

this is with the git version of xmobar, right? does is happen with 0.16?

from xmobar.

christianlask avatar christianlask commented on August 17, 2024

The actual command I issued to get xmobar was: 'cabal install xmobar --flags="with_mpd with_xft with_utf8 with_dbus with_inotify with_threaded" --ghc-options="-threaded"', so no, not the git version. ;)

from xmobar.

nwolovick avatar nwolovick commented on August 17, 2024

Ubuntu 12.04/amd64 (ghc-7.4.1-1ubuntu2), I've recopiled xmobar with 'cabal install xmobar --ghc-options="-threaded', restarted, and wakeups/s dropped from 30 to 10 both in xmobar and xmonad.

from xmobar.

jaor avatar jaor commented on August 17, 2024

from xmobar.

liskin avatar liskin commented on August 17, 2024

Perhaps. But then haven't been any reports of too many wakeups for the last 2 years (mostly because intel realized software developers are idiots and managed to fix this in the hardware) so maybe not worth the trouble. :-)

from xmobar.

edmund-huber avatar edmund-huber commented on August 17, 2024

I'm using xmobar 0.24.3 compiled using ghc 8.0.2. I set the threaded flag to default True, cabal installed, (checked that sha1sum $(which xmobar) changed), still lots of wakeups (~100/s). Nothing unusual in xmobarrc..

from xmobar.

jaor avatar jaor commented on August 17, 2024

from xmobar.

jaor avatar jaor commented on August 17, 2024

this change is in 0.24.4 and it works for me, so i'm closing the bug. feel free to reopen as needed.

from xmobar.

Related Issues (20)

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.