събота, 29 февруари 2020 г.

Sudden loss of FPS

To my greatest surprise when I tried playing games this week, I would play about 10mins and then the game would suddenly experience a total FPS drop at which point it has to be killed. I thought it's a problem with the latest KSP update, but then it happened with another game and I was like "What?".
Well, it seems like some genius decided that there should be a 10 mins limit of work for the discrete card (i.e. the Nvidia). Because...why not. Let's stop people from gaming and give them back their life. Oh well.
Anyway, luckily once I realised the problem is on my computer, it was very easy to find a solution using Google. So according to this forum, or Arch Linux's wiki, it's to add in the section Screen (or in my case Devices) of /etc/bumblebee/xorg.conf.nvidia
 
Option "HardDPMS" "false"
  
For now, $optirun glxspheres works for more than 10 mins without an FPS drop, so YAY! 
 
(the other solution, to type in terminal:
$xset s off -dpms
doesn't work, at least, it didn't for me.)
 

четвъртък, 9 януари 2020 г.

Install epson l3151 in ubuntu

So I've bought a new 3 in 1 device - Epson L3151 printer and scanner. These are the install packages I installed to get the printer and scanner running in Mint. (so far in Sabayon, I've only made the printer work, for some reason it simply doens't recognise the device even if it sees it in lsusb)
I probably have installed more packages than needed but especially with the scanner, the minimal install simply wasn't working. After I installed everything I saw related to scanning, it worked :) Btw, the printer is great, the scanner as well. I'm very happy with it - very easy to add the ink, very easy to manipulate. If only I could network install it without Windows, but that seems too hard and I don't have time for it now.

To install the printer (Epson drivers, the PPD for manual install): 
>sudo apt-get install printer-driver-escpr epson-inkjet-printer-escpr epson-printer-utility escputil mtink

To install the scanner, I basically installed all the scanning packages I found (the "official" Epson webpage) :
>sudo apt-get install imagescan-bundle-ubuntu imagescan iscan-plugin iscan-data sane sane-utils libltdl7 exim4-daemon-heavy simple-scan xsane imagescan-plugin-gt-s650 imagescan-plugin-networkscan imagescan-plugin-ocr-engine mawk

You should be able to see your scanner with these two commands:
>sane-find-scanner
>scanimage-L
or for debugging:
 >dpkg -l iscan* | grep ii
And to use the scanner, the only thing that worked is xsane
>xsane

Note, xsane is not easy to work with at first.
If you want to scan multiple documents, you FIRST choose in the main menu (the one with File, Preferences etc)-> Multiplepage (you can also set Color/Greyscale)
Then in Standard options, you choose A4
Then you click Scan in the Main window
A new scan appear in the Multipage menu. You can preview it with Show image
Then you scan the same way the other pages. Then you click on Save project (you should have chosen as filetype PDF). And then you have your PDF in the project folder.
Sources: Link1, Link2, Link3, Link4
 
For Manjaro not finding the printer/scanner I did 
$sudo pacman -S sane
 
https://help.ubuntu.com/community/sane_Troubleshooting 
 
pamac search epson-inkjet-printer-escpr  
pamac build epson-inkjet-printer-escpr
pamac build epsonscan
pamac build epsonscan2
pamac search -a escpr
pamac build  search -a escpr
pamac install epson-inkjet-printer-escpr2
https://wiki.manjaro.org/index.php/Printing
http://localhost:631/
 

сряда, 27 ноември 2019 г.

Whatsapp not waking up phone

It turns out there is something called  "Advanced battery optimization". If you search for it, you can find it on your Android phone and under Whatsapp it should say "Not allowed". That solves the problem of Whatsapp happily sleeping all the time.