Fedora 31, Optimus, Bumblebee and Steam

My laptop(XPS 15) has Nvidia 1050 Ti but I never used it to play games, because I replaced Windows 10 with Fedora Linux on the first day, not even a dual boot. I’ve tried Bumblebee to run Linux native games on Nvidia a few years ago but it wasn’t stable enough.

After I upgraded the laptop to Fedora 31, I decided to give Bumblebee another try. Luckily I got it working just by following instructions here. With very little efforts, I got Nvidia Settings and GLXSpheres working.

And it’s almost a no-brainer to launch Steam Linux native games with an extra launch option optirun -b primus %command%

That’s it, now I can play my Steam games on my Linux laptop 🙂

Install Nvidia 396 Driver for Ubuntu 18.04

Just some quick notes to upgrade Nvidia driver from 390 to 396 on Ubuntu 18.04. By default Ubuntu 18.04 only has Nvidia driver 390.

# add ubuntu official ppa for nvidia
# all commands below run as root
add-apt-repository ppa:graphics-drivers/ppa
apt update
# install 396 files
apt install nvidia-dkms-396 nvidia-driver-396 nvidia-compute-utils-396 libnvidia-compute-396
# reboot at the end.

After reboot, the new driver can be verified by:

nvidia-smi 
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.54 Driver Version: 396.54 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 Off | 00000000:01:00.0 Off | N/A |
| 44% 67C P2 150W / 230W | 3211MiB / 8117MiB | 100% Default |
+-------------------------------+----------------------+----------------------+

🙂

PS4 SSD Upgrade Made Easy With Linux

PS4 + SSD

Even the latest PS4 Pro model comes with an HDD. I can’t remember when was last laptop shipped with HDD but I can imagine what an SSD upgrade brings to an old PS4.

The only issue is, if I put the new SSD drive in straight away I’ll need to install the PS4 OS and then download everything. Now it’s a good opportunity to show off my Linux skills, is it not?

I plug in the old PS4 HDD and the new SSD to my workstation which runs Ubuntu Linux, then only 1 command is needed to do the disk copy:

dd if=/dev/sdd of=/dev/sdc bs=1M status=progress

This took me about 2.5 hours to finish, but before you start, make sure /dev/sdd is the old drive and /dev/sdc is the new drive in your setup because this is very destructive if /dev/sdc is the old drive by any chance.

Then I put the SSD into the PS4 and it booted up with all my games, except being much faster!

🙂

又一个神作 The Last of Us

the-last-of-us-remastered

最近忙里偷闲, 一个月每次有空儿就玩上半小时一小时的, 终于把 The Last of Us 通关了.  不愧是屡获殊荣的神作, 以至于现在我觉得别的游戏不那么有意思了.

稍微总结一下, TLOU 的成功之处首先是有一个很赞的剧本. 角色扮演游戏和电影差不多都是在讲一个故事, 所以特效或者女主的颜值都是次要属性.

其次男主 Joel 并无神力, 遇到几个对手要是不打算智取的话那基本就性命堪忧了(或者你玩的是 easy). 所以以往看到僵尸就路见不平一声吼的习惯在这是格格不入的, 再说也没有经验值一说, 所以绕开一群僵尸在某些时候可能会带来更好的结果.

乱世的气氛营造的也非常好, 一方面城市的荒废让大自然”趁虚而入”, 另一方面社会已经崩溃, 人与人之间不再友善和信任. 各种消费品更是极端缺乏, 翻了半天只找到几发子弹对不对, 那如果不是”head shot”恐怕自己都觉得败家了. 敌对势力的 AI 做的也不错, 土匪甲会让土匪乙去抄你的侧翼.

最后就是 Joel 与 Ellie 之间从路人到类父女的关系进展, 也刻画的很赞.

🙂