Skip to content

Commit 0f65645

Browse files
committed
Add TODO for Yubikey agent
1 parent f4dc6ee commit 0f65645

40 files changed

+1844
-4502
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,29 @@ windows_drivers/WLAN/
1010
winpe/assets/HBCD_PE_dark.jpg
1111
winpe/assets/HBCD_PE_light.jpg
1212
winpe/cache/
13+
14+
# aspell
15+
*.md.bak
16+
17+
# https://github.com/github/gitignore/
18+
19+
# Vim.gitignore
20+
# Swap
21+
[._]*.s[a-v][a-z]
22+
!*.svg # comment out if you don't need vector files
23+
[._]*.sw[a-p]
24+
[._]s[a-rt-v][a-z]
25+
[._]ss[a-gi-z]
26+
[._]sw[a-p]
27+
28+
# Session
29+
Session.vim
30+
Sessionx.vim
31+
32+
# Temporary
33+
.netrwhist
34+
*~
35+
# Auto-generated tag files
36+
tags
37+
# Persistent undo
38+
[._]*.un~

FAQ.adoc

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
= FAQ
2+
:hide-uri-scheme:
3+
// Enable keyboard macros
4+
:experimental:
5+
:toc:
6+
:toclevels: 4
7+
:icons: font
8+
:note-caption: ℹ️
9+
:tip-caption: 💡
10+
:warning-caption: ⚠️
11+
:caution-caption: 🔥
12+
:important-caption: ❗
13+
14+
== General
15+
16+
=== Who is this for?
17+
18+
Me. I'm a Linux systems administrator and engineer.
19+
20+
=== What is this about?
21+
22+
This is a repository of semi-structured notes I wrote while configuring my Steam
23+
Deck gaming console.
24+
25+
=== Why is it written this way?
26+
27+
After reading blog posts from Dan Luu, listening to the ReWork podcast and some
28+
others I thought it was an idea to try out. So it's me talking to myself
29+
naively about technology in public without trying to create a stage. Just to
30+
get better at writing and organizing. I wrote some things on StackExchange some
31+
time ago which would also benefit from improving my writing.
32+
33+
It's a repository for things I don't want to keep in my head or in a todo list.
34+
35+
== Considerations
36+
37+
=== Is there a battery life extender? Aka stop charging at 80%.
38+
39+
[quote,https://help.steampowered.com/en/faqs/view/69E3-14AF-9764-4C28]
40+
____
41+
If your device has been left on the charger for long periods of time, it may
42+
report less than 100% charge. This is normal. We allow the battery to slowly
43+
discharge after long periods of time under charge to optimize long-term battery
44+
health.
45+
____
46+
47+
So It can be considered "safe" for the battery life to leave it plugged in and
48+
docked, it won't top up the battery like crazy. The 80% thing may be a
49+
marketing gimmick from Apple and other manucaturers.
50+
51+
=== Should I reduce the EXT4 reserved blocks count on Steam Deck?
52+
53+
No. The reserved blocks count, which is typically set to 5%, is set to 0 on
54+
Steam Deck.
55+
56+
**Note:** This is an interesting experiment from my point of view/ because some
57+
people advised against my advice to reduce from 5% to 0.5% or lower with
58+
`tune2fs`. I trust Valve's developers on this one, but I should research where
59+
the 5% default originated and what purpose it serves. Many customers and admins
60+
are not aware of this.
61+
62+
=== Is there any benefit in researching to choose different filesystems?
63+
:tag-btrfs-script: https://gitlab.com/popsulfr/steamos-btrfs
64+
65+
Probably not. Someone wrote a {tag-btrfs-script}[script to convert the home
66+
partition to Btrfs], but we will have to see how that plays out during future
67+
platform upgrades. For the default Valve should have a plan to not brick their
68+
customers systems and make them start from scratch. That lost time and money
69+
may outweigh potential performance improvements and storage savings. Additional
70+
microSD cards are on sale from time to time. That's good enough for me. Want to
71+
go beyond that? Setting up USB-C NVME or HDD drives should be possible with
72+
reasonable effort.
73+
74+
You can do encryption with EXT4 as far as I know. XFS is default for RHEL, but
75+
we are not running a RHEL server here. Recent Fedora chose to use Btrfs and I
76+
think ChomeOS also makes use of it somewhere. Definitely not trying out ZFS on
77+
Steam Deck, altough I like it.
78+
79+
=== Is there any benefit on replacing the internal SSD?
80+
81+
I have the 512 GB model. While you could do it, you would need to find an M.2
82+
2242 drive with better perfromance in the same power and temperature budget. I
83+
wish it was easier, but finding such drives is not easy for me at the moment.
84+
I'm still looking for a replacement of my Toshiba RC-100 drive in a different
85+
device and I can't find one. Single sided or double sided? B-key, M-key or
86+
B&M-Key? Not with investigating this at the moment.
87+
88+
=== How to reduce installation size of games?
89+
90+
Example: Forza Horizon 5 is over 100GB in size.
91+
92+
There is no standardized way at the moment as it seems. Some users suggested
93+
abiguously deleting files they think are safe to delete, like very high
94+
resolution assets, but this is not safe and steam will report that the game
95+
content is inconsistent when performing a check and starting downloads. A bad
96+
idea that multiplies and gets worse when you have a few more titles which
97+
frequently receive content updates.
98+
99+
Games like Fortnite on the other hand--when I run it on Windows 2 GO on the
100+
Steam Deck--provide an option to remove or not download high resolution content
101+
which optimizes for smaller or low powered devices. But Microsoft and other
102+
publishers seem to assume that a Steam client is a PC and if it downloads some
103+
title it must be a high performance workstation. Steam Deck is somewhere in
104+
between a Nintendo Switch and an Xbox Series S and I'm sure many who claim
105+
themselves to be gamers have hardware with comparable perfomance and should not
106+
have to shell out money to download and store content they don't need right now.
107+
I have probably used to much Linux pacakge management and gaming consoles to
108+
criticize this here. We will see. Microsoft claim that their Smart Delivery can
109+
do wonderful things, but a video by MVG gives me the impression that
110+
optimization was an after thought and it's mostly about DRM.
111+
112+
**Note:** Needs more research, I'm probably just using inappropriate search
113+
terms and filters.
114+
115+
=== Can I run monitoring?
116+
117+
Sounds like an interesting idea from an infrastructure admin point of view. Not
118+
sure about that, may be we can install Netdata in some way and gain some
119+
insights through metrics. Steam Deck has a performance overlay which does what
120+
gaming journaslits expect though.
121+
122+
Creating a shortcut for Konsole and have it run `btop` is the best solution for
123+
now.
124+
125+
=== Can I run emulation?
126+
127+
Besiedes RetroArch for various things there seems to be EmuDeck particularly
128+
made for Steam Deck.
129+
130+
https://www.emudeck.com/#how_to_install
131+
132+
=== Can I run games bought from the Origin or GOG store on Steam Deck?
133+
134+
Yes.
135+
136+
See: link:steamos.adoc#heroic-epic-games-store-and-gog[Heroic]
137+
138+
=== Can I run games bought from the Nintendo store?
139+
140+
No.
141+
142+
Read carefully here. I own a Nintendo Switch, I bought some games there, some of
143+
them are not Nintendo exclusives while others are free to play. It would have
144+
been nice to run some of them legally with minimal effort, like for example
145+
Fortnite. It is not possible or reasonable for me and I accept that.
146+
147+
=== Can I modify the controller inputs?
148+
149+
Yes, in desktop mode open the steam client, select Steam from the menu and go to
150+
Controller. You can change the layout, button mappings and all other possible
151+
attributes there.
152+
153+
I change to the default layout, which was not detault on SteamOS, for which I
154+
swapped PGUP and PGDN, set mouse acceleration on the trackpad to high und
155+
reduced haptic feedback.
156+
157+
=== How do I decrypt Syncthing folders?
158+
159+
I wrote a script called `stdec`.
160+
161+
See the following thread for decrypting single files:
162+
https://forum.syncthing.net/t/can-i-decrypt-a-single-file-or-a-selection-of-files-from-an-untrusted-folder/20622
163+
164+
Remember that you need to give filesystem access to `/dev/shm` and
165+
`$HOME/SYCTHING_DECRYPTED/folder` to Flatpak apps that should access these
166+
files.
167+
168+
== Troubleshooting
169+
170+
=== How to replay the Guided Tour?
171+
172+
Game Mode Options Menu -- via kbd:[···] -> Help -> Replay Guided Tour
173+
174+
=== Where to I report bugs?
175+
176+
Game Mode Options Menu -- via kbd:[···] -> Help -> Report a Bug
177+
178+
link:steamos.adoc#where-and-how-to-report-compatibility-issues[Where and how to report compatibility issues?]
179+
180+
=== My games look like Pixel Art, but not in desktop mode
181+
182+
You have enabled half rate shading in the power menu, disabled it.
183+
184+
=== How do I fix overscan on TVs and Beamers?
185+
186+
Go to Settings -> Display. Disable Automatically Scale image and adjust the
187+
size on the bar that has now appeared.
188+
189+
https://www.youtube.com/watch?v=mVcwAR0319U
190+
191+
=== Grub, Ventoy and other bootloaders start up in portrait mode
192+
193+
A comment in `/etc/default/grub` on SteamOs explains that `1280x800x32` is the
194+
correct resolution, however Ventoy starts with `800x1280x32`, which can be
195+
changed through F5:Tools -> Resolution Configuration.
196+
197+
The following is supposed to work for Windows, but I had no luck on Windows 11 22H2:
198+
199+
[quote,https://learn.microsoft.com/en-us/answers/questions/1317765/problem-with-resolution-of-windows-boot-manager]
200+
____
201+
202+
[source,pwsh]
203+
----
204+
bcdedit /set {bootmgr} displaybootmenu yes
205+
bcdedit /set {bootmgr} defaultdisplaymode <width> <height>
206+
bcdedit /enum {bootmgr}
207+
----
208+
____
209+
210+
=== Can I mount LUKS encrypted volumes?
211+
212+
[source,bash]
213+
----
214+
if [[ -z $(grep --extended-regexp \
215+
'GRUB_CMDLINE_LINUX_DEFAULT=".+(module_blacklist=tpm).+"' \
216+
"/etc/default/grub") ]]; then
217+
sudo sed --in-place=".$(date +%F_%H-%M-%S)_luks.bak" \
218+
's/module_blacklist=tpm //g' \
219+
"/etc/default/grub"
220+
sudo update-grub
221+
else
222+
echo -e "Nothing to do. GRUB has already been updated."
223+
fi
224+
reboot
225+
226+
sudo modprobe dm_crypt
227+
----
228+
229+
At the time I was searching for a solution I found the links below helpful, but
230+
the content seems to have been removed, which proves my point that
231+
StackExchange is better suited for such things.
232+
233+
* https://www.reddit.com/r/steamdeck_linux/comments/y0y35k/is_there_a_trick_to_mounting_a_luks_encrypted/
234+
* https://www.reddit.com/r/SteamDeck/comments/wnizdu/anyone_able_to_mount_a_luks_encrypted_usb_stick/
235+
236+
=== Can I enable IOMMU?
237+
238+
Yes. See: https://github.com/Smalls1652/steamdeck-iommu-fix/blob/main/enable-iommu.sh
239+
240+
Here is a shorter version of the script:
241+
242+
[source,bash]
243+
----
244+
if [[ -z $(grep --extended-regexp \
245+
'GRUB_CMDLINE_LINUX_DEFAULT=".+(amd_iommu=on iommu=pt).+"' \
246+
"/etc/default/grub") ]]; then
247+
sudo sed --in-place=".$(date +%F_%H-%M-%S)_iommu.bak" \
248+
's/amd_iommu=off/amd_iommu=on iommu=pt/g' \
249+
"/etc/default/grub"
250+
sudo update-grub
251+
else
252+
echo -e "Nothing to do. GRUB has already been updated."
253+
fi
254+
----

0 commit comments

Comments
 (0)