Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #174339

Re: how to turn off backlight in console (without any X server)

From Laurent Debian <laurent.debian@gmail.com>
Newsgroups linux.debian.user
Subject Re: how to turn off backlight in console (without any X server)
Date 2016-11-08 12:00 +0100
Message-ID <sBcid-8hA-3@gated-at.bofh.it> (permalink)
References <syHix-MM-9@gated-at.bofh.it> <syHBT-Ty-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi and thanks for your ideas

Unfortunately there is no directory  /sys/class/backlight on my system.
After a

> locate backlight
>
I juste had the following files as seemingly relevant.

> /var/lib/systemd/backlight/pci-0000:02:00.0:backlight:nv_backlight
> /var/lib/systemd/backlight/platform-applesmc.768:leds:smc::kbd_backlight
>
Which were both at 100 but an echo 0 > ....  had no effect on the backlight
(tough it tuned to 0 the value of in the  files )
Any ideas where I should start to look at ?

Cheers,


2016-11-01 14:49 GMT+01:00 <tomas@tuxteam.de>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, Nov 01, 2016 at 02:22:46PM +0100, Laurent Debian wrote:
> > Hi all,
> >
> > I would like to turn off the backlight completly on a  mac book pro 2008
> > (sid).
> > I don't have any x server.  Does it explains this error ?
>
> Most probably yes. "Xbacklight" hints at an X application. RandR is an
> X server extension.
>
> > >  xbacklight -set 10
> > > RANDR Query Version returned error -1
> > >
> >
> > the graphic card is
> > 02:00.0 VGA compatible controller: NVIDIA Corporation C79 [GeForce 9400M]
> > (rev b1)
> > nouveau is loaded by the kernel.
>
> I'd imagine that xbacklight (and xrandr) try to talk to the X server to
> do their bidding.
>
> >
> > Any way to turn off the backlight without installing  X woudl be greatly
> > appreciated.
>
> Have a look at the files under /sys/class/backlight. For me, this works:
>
>   sudo bash -c "echo 2 > /sys/class/backlight/acpi_video0/brightness"
>
> Enjoy
>
> - -- t
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlgYnW0ACgkQBcgs9XrR2kb+vQCfaJwwyrg9ZpPdlmLpYkQwhpJ2
> fS8An1rsuKp8O8dq3X0NwjKP1mMGS37w
> =LcrE
> -----END PGP SIGNATURE-----
>
>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to turn off backlight in console (without any X server) Laurent Debian <laurent.debian@gmail.com> - 2016-11-01 14:30 +0100
  Re: how to turn off backlight in console (without any X server) <tomas@tuxteam.de> - 2016-11-01 14:50 +0100
    Re: how to turn off backlight in console (without any X server) Laurent Debian <laurent.debian@gmail.com> - 2016-11-08 12:00 +0100
      Re: how to turn off backlight in console (without any X server) tomas@tuxteam.de - 2016-11-08 14:10 +0100
        Re: how to turn off backlight in console (without any X server) Laurent Debian <laurent.debian@gmail.com> - 2016-11-08 14:20 +0100

csiph-web