Monday, 12 December 2016

Linux kernel 4.9 amdgpu blank screen in Gentoo

After updating to kernel 4.9 I ended up with a blank screen after grub.

Booted back to 4.8 and checked logs and found a firmware file was showing as erroring and load not loading:


So I had to add that to firmware load files in the generic device drivers of the kernel and now all works.

It had a firmware file


before so the k one is new in 4.9.

Sunday, 13 November 2016

LG LED IPS 24MP68VQ-P monitor review (sort of)

I thought it was time for a new monitor and a local sale gave me the incentive. The main reason I wanted a new monitor was primarily Freesync for gaming and watching video.

After reading reviews I had a couple of favourites. This LG and a Viewsonic fitted my specs and price.

On the night the LG was there and had quite a hefty discount and I like LG gear.  I think it's the quieter, less flashy (dare I say better?) sibling of Samsung.

Going from a 2009 or so Viewsonic 24 VX monitor to this LG is quite a revelation. I'm not saying the Viewsonic is bad, it's just an LCD panel that is older technology. I would happily buy another Viewsonic.

First off the size. Same viewable size but the LG is barely bigger than the panel. I could have gotten a 27" LG taking the same space as the old monitor.  It's barely 15mm  deep. The base is also smaller as the monitor is lighter hence more desk space returned.

Brightness/contrast:  panel technology has moved on a lot in seven years it seems. It is so much brighter and still black is black, so better contrast.  The colour accuracy, if the included output sheet is to be believed, is a huge improvement as well.

Gaming/video: once I found the freesync switch (see cons later) it makes quite a difference if you have a new AMD video card (CGN 3 and up so RX9 300 +)  Gaming is sharper and watching video (especially fullHD BD etc) no longer tears.  It is just nicer.

The cons: the controls of this monitor are by a little joystick facing down under the panel. This is a bit fiddly and not very descriptive. Settings like Freesync were off and you'd think they would default to on since they won't work unless the video card supports them. So nothing major.

To be fair most new monitors would provide these but I'm quite stunned how for not much money you get what is normal today and is such an improvement over what was OK 5 years ago.  I guess it's like cars.

So if you have an old monitor, go do yourself a favour and find yourself something like this and upgrade.  It's smaller, better to look at and uses less power.

Tuesday, 27 September 2016

Why I'm driving to work again

Well today is my first day of driving to work in over 7 months.

Yet another train/track fault last night was the final straw.  Why is Auckland transport making new tracks when it can't even maintain what it has already? Too many times it's "OK get off here, go and find a bus" or trains just vanish from the timetable.

For public transport to succeed it needs to be cheap, reliable and easy.  Auckland transport is reasonably priced is 0.5 out of 3.

Make it free and get people to use it, then either add a small charge or remove  some of the council bloat and put that towards public transport. Once more people use it then it should get more frequent.  Again as no-one had forethought, some tracks a single lines so you can only have one train tieing up the line beyond Penrose to Onehunga for example.  That needs to change to twin lines everywhere and trains to the airport and north shore to at least Albany. Don’t try and milk it to make money just make it good. Every household contributes $1000 a year or so in rates for it if I recall correctly.

It needs to be easy.  Needs to be a no brainer to use.  I take the train because each time I've taken the bus it's been like being a passenger in a rally car and it's impossible to read etc. Whoever thought that any park and ride is big enough obviously doesn't use them. All the ones I know about are full early and New Lynn doesn't even have one. And just little things like the times they run.  I would get to town at 8:32.  Great, not many people take 28 minutes to get to their offices. I gained almost an hour in my day today by driving.

I'm generally for small government but public transport is something that needs to be right for a city to function. You should be able to jump on something go to an event or out for dinner and know you can get home safely even if you've had a few drinks.

If you can't do it properly just make the main roads bigger and give up.  Let Uber rule transport and give me a third of my rates back.

I do miss an hour reading each day though.

Yes, TL:DR.

Tuesday, 21 June 2016

Linux Wake on LAN with Realtek RTL8111F

So I splashed out and bought a new motherboard, CPU and RAM after finding my motherboard BIOS was last updated in 2010 and upgrading the RAM was going to cost more than a new combo.

Quite a difference.  I can compile Firefox, LibreOffice, Webkit etc in about 20 to 25 per cent of the time it used to take.

I've converted everything from old MBR to GPT and booting with UEFI boot files which is quite cool.

One thing I couldn't get going was wakeonlan.

I set wakeonlan to magic packet (g in ethtool) but it would not wake up. I'm using kernel 4.6.2 so that's the most recent stable for Gentoo.

After some searching I found another network problem with the RTL8111F that they fixed by using a driver from Realtek's web site.

So I went to this page

and downloaded the driver for 3.X kernels.  I build kernels in the monolithic style so, disabled the RTL8168 driver (I think the kernel calls it that or rtl8169) and rebooted.  The download from ReakTek has a script that  unloads the rtl8168 module and compiles the new one and loads it.

Low and behold, after that WoL started working.  So maybe the kernel driver for the Realtek cards needs some love.

Monday, 20 June 2016

Android phone Google account problems

Well I have to say I've lost a lot of respect for Google today.

I got a message on my phone from the Google account to say something suspicious had possibly gone on and I should change my password.

So I logged into the web site and double checked and changed my password.  Changed on the web browser OK and other machines but not on the phone.  No way.

You enter your details (username, password and 2 factor from Authenticator)  and you get "sorry, there seems to be a problem. please try again." Tried this a few times, rebooted etc but no joy.

So I deleted the account from the phone and tried re-adding it.  Nope still the same problems.  Search for this error and quite a few people have had it.  The suggested try an App specific password. Nope it say dah, enter your account password not an app specific one.

Finally got frustrated and removed the 2 factor from the account and that did it. So you have to unsecure your account to get your phone on.  How bad is that?

Hope this saves someone else some frustration.

Now to try turning two factor back on and see if it breaks.

Friday, 17 June 2016

Random libraries in Linux

I'd been having some issues with the Linux box not compiling things like

emerge -1 =dev-perl/libintl-perl-1.240.0-r2

It would stop and saying

skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/ when searching for -liconv

I searched for ages and found there was indeed a libincov but you can't have that installed at the same time as new glibc.

Hmm... OK what package installed these things.  Looks like gcc 5.3.0.  Recompile that.. nope... try older gcc.. nope.

Newb mistake there. The number of .. parent links takes it right out of the gcc folders. Right pack to /usr/lib/

Ok what package installed it? Equery, the package manager query tool

equery b

returned nothing. Meaning no package installed it. Tried taking off the .so versions numbers etc still the same.

What the?  OK this is crazy how about just deleting it.  If anything needs it it will re-install it surely.

All of a sudden

emerge -1 =dev-perl/libintl-perl-1.240.0-r2

worked again. The texinfo etc ones with the same errors worked.

So having extra unwanted libraries is as dangerous as not having the right libraries.  More so, because you think they're OK.  I guess at some stage I've installed somethign that has left them there or a Gentoo package has changed and not cleaned up after itself nicely.

Either way , weird problem.

Friday, 25 March 2016

How to make Firefox more secure in a few clicks

I've messing a lot with cipher suites lately and something I always do in my firefox browsers will stop all the non forward secrecy ciphers.

What Forward Secrecy does is use a second dynamic key when encrypting your traffic. So even if the bad guys break a private key on your server's certificate at the later date your traffic is encrypted by another layer.  If you don't use forward secrecy and they capture your data and find the private key it's easy to decrypt. Wireshark will do it on the fly.

So in Firefox

type about:config in the address bar

It will bring up a warning saying be careful.  Click yes you know.

In the search box below the address bar type ssl.  Look at the bottom of the list and find the ones that start security.ssl3.rsa and double click them and will change enabled to false. You should also disable anything that mentions rc4.  The ones that have dhe are good, the ones that have ecdhe are better, and the ones that have chacha20 are best but not everything supports them.

Try you websites and you might need to re-enable some if, say your bank doesn't work.  Alternatively run your bank against this site

and let them know if they don't get a good score.

Tuesday, 15 March 2016

Linux Kernel 4.5 and amdgpu

My Linux gaming experience has been a bit sub par since upgrading to a Radeon R9-380.

It was just laggy enough to make playing hard. You often don't see the person that's killed you and things like air blasting rockets in TF2 was almost impossible to time right.

However things seems to have turned.  With Kernel 4.5, the amdgpu driver and adding the amdgpu.powerplay=1 to your kernel options in GRUB speed of gaming and even YouTube is quite noticeably improved.

The other problem I had been having was TF2 would freeze after a few games and you had to do the old alt prt-sc REISUB to reboot. Touch wood that also seems to be fixed.

So a big debt of thanks to the Kernel team and particular the amdgpu guys.

Switch your Raspberry Pi 3 to use a hard drive

I have a Pi 3 that is a DNS, web, email etc server and it's gone through a few SD cards and gets bogged down in high wait % in top somet...