help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PGTK+ warning


From: Emanuel Berg
Subject: Re: PGTK+ warning
Date: Tue, 15 Nov 2022 16:14:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

>> Is there a way to disable this pop up? Right now it steals
>> focus from Emacs, and it's a bit cumbersome to manually
>> close it every time.
>
> Since you should likely (re)start Emacs every month or so,
> it shouldn't be a problem. If you constantly start new Emacs
> sessions, then maybe that's the problem you should
> solve first.

Agreed, but that can be tricky if the problem lies with the
computer itself and not Emacs ...
  
The fans collective dB(A) is computed to

  (db 18.9 14.7 15.9 15.9) ; 22.7 dB [Elisp last]

The PSU is semi-passive

  Fractal Ion+ 560W Platinum, semi-passive [1]

But there is still some always-on fan that annoys me enough to
shut the whole thing of every time I don't use it

Maybe the GPU which I don't need anyway LOL

  msi Nvidia Geforce GT 710, 2GB DDR3, PCI-E2.0, HDMI+DL-DVI-D

?

What happens if I just remove it, can the CPU manage, does it
fall back to that automatically?

  AMD4 x86_64
  $ lscpu | grep name
  Model name: AMD Ryzen 3 3200G with Radeon Vega Graphics

Hibernation is a possibility (actually I think I installed
Debian with too little swap space) but hibernation breaks the
network link so it isn't optimal either ...

(That Elisp to do the dB is cool actually.)

[1] https://dataswamp.org/~incal/ebchw/COMPUTER

;;; -*- lexical-binding: t -*-
;;
;; this file:
;;   https://dataswamp.org/~incal/emacs-init/audio.el

(require 'cl-lib)

(defun db (d &rest ds)
  (let ((all (cons d ds))
        (sum 0) )
    (cl-loop
      for a in all
      do (cl-incf sum (expt 10 (/ a 10.0))) )
    (* 10 (/ (log sum) (log 10))) ))

;; (db 15)          ; 15
;; (db 15 15)       ; 18
;; (db 15 15 15)    ; 19.7
;; (db 15 15 15 15) ; 21

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]