5

I installed xcalib to adjust my screen contrast, and I executed this :

xcalib -co 0 -a

Which set my screen contrast to 0 , and now my screen turned dark, and I don't have any clue as to how can I reset this setting ?

Thank you

SmootQ
  • 539
  • 2
  • 6
  • 17

2 Answers2

9

To reset to default use

xcalib -c

Even if its an old post...

Elder Geek
  • 35,476
  • 25
  • 95
  • 181
Hauke
  • 91
  • 1
  • 1
  • 2
    How does this add anything to the accepted answer? – M. Becerra May 10 '17 at 19:26
  • 1
    @M.Becerra This is indeed a tested functional alternative. – Elder Geek May 10 '17 at 20:11
  • 1
    @M.Becerra I don't believe the intention was to add to the other answer, even if it uses `-c` (you'll note that the question also used `-c`, however; so, I don't think that's enough to say this answer is building off of the accepted answer). It's much simpler than the accepted answer, and it still seems to work. No need to press Ctrl+Alt+F7 or anything like that. Granted, I'm only using this answer for my own purposes (not for what the questioner wanted, exactly). – Brōtsyorfuzthrāx Feb 05 '19 at 20:30
  • I see your point :) – M. Becerra Feb 05 '19 at 21:34
  • This has less complexity than the accepted answer, @M.Becerra. It has less arguments and solves the problem – shmup Feb 22 '20 at 23:04
  • The accepted answer does not work in my case, this does. – RodolfoAP Jun 18 '21 at 05:53
3

As first enter a TTY, this you achieve by pressing ctrl+alt+f1. There you can login whit providing your username and password. Then set the contrast back with the same command you have used to set it to zero.

xcalib -co 50 -a

Now you can logout of your TTY session by entering exit. Afterwards you can come back to your GUI by pressing ctrl+alt+f7.

Videonauth
  • 33,045
  • 16
  • 104
  • 120