請問一下 flatpak 要怎麼讓無 root 權限的 user 可以直接使用有 root 權限的用戶安裝的軟體?
請問:遇到 Ctrl + Alt + F1~6 都沒有 tty 畫面,有什麼方法可以重開 tty 嗎?
(圖形介面正常)
Ubuntu 預設應該是有開控制台的,請提供作業系統散布版名稱與版本
MF-16A 音創筆電 / MX Linux 23.2(Based on Debian 12)
我這個預設也有開 tty,我疑惑的地方是:剛開機的時候是有效的,經過幾天使用、沒有重開機、但有蓋螢幕睡眠跟開螢幕醒來,然後 tty 就忽然壞了
我記得不是第一次遇到這問題,重開機就會恢復
也印象中其他機器也有遇過(但當時沒放在心上),所以和機型本身未必有直接關係
顯示介面型號應該是 AMD Radeon 680M
是可以切過去但是畫面全黑沒有文字界面的登入提示嗎?
對,按下切換組合鍵就會脫離原本的圖形介面
但畫面上完全沒有東西,也沒有閃爍的游標,就是全黑
切過去之後試著按幾次 Enter 鍵看看登入提示會不會出現
開啟一個文字界面終端機應用軟體,執行下列命令後將輸出貼上來:
systemctl list-units getty*
UNIT LOAD ACTIVE SUB DESCRIPTION
getty@tty2.service loaded active running Getty on tty2
getty@tty3.service loaded active running Getty on tty3
getty@tty4.service loaded active running Getty on tty4
getty@tty5.service loaded active running Getty on tty5
getty@tty6.service loaded active running Getty on tty6
getty.target loaded active active Login Prompts
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
6 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
註:我的圖形介面現在出現在 tty1 + tty7
看起來 TTY 終端機服務是有在運作的 🤔
於文字界面終端機應用軟體中執行下列命令並將輸出貼上來:
journalctl -u getty@tty6.service
$ sudo journalctl -u getty@tty2.service
[sudo] kaiu 的密碼:
2月 23 12:59:35 kaiu-nb1 systemd[1]: Started getty@tty2.service - Getty on tty2.
2月 23 13:18:01 kaiu-nb1 systemd[1]: getty@tty2.service: Deactivated successfully.
2月 23 13:18:01 kaiu-nb1 systemd[1]: getty@tty2.service: Scheduled restart job, restart counter is at 1.
2月 23 13:18:01 kaiu-nb1 systemd[1]: Stopped getty@tty2.service - Getty on tty2.
2月 23 13:18:01 kaiu-nb1 systemd[1]: Started getty@tty2.service - Getty on tty2.
2月 23 13:18:45 kaiu-nb1 systemd[1]: getty@tty2.service: Deactivated successfully.
2月 23 13:18:45 kaiu-nb1 systemd[1]: getty@tty2.service: Scheduled restart job, restart counter is at 2.
2月 23 13:18:45 kaiu-nb1 systemd[1]: Stopped getty@tty2.service - Getty on tty2.
2月 23 13:18:45 kaiu-nb1 systemd[1]: Started getty@tty2.service - Getty on tty2.
註:我剛中午在嘗試解問題的時候曾經對它送 15 SIGTERM,它看起來像是有重新啟動過,PID 不一樣
於文字界面終端機模擬器應用軟體中執行下列命令:
journalctl --unit systemd-logind.service --lines=15 --reverse --no-pager
並將輸出貼上來
$ sudo journalctl --unit systemd-logind.service --lines=46 --reverse --no-pager
2月 23 13:47:14 kaiu-nb1 systemd-logind[1266]: Watching system buttons on /dev/input/event9 (Logitech G502 HERO Gaming Mouse Keyboard)
2月 23 13:37:01 kaiu-nb1 systemd-logind[1266]: Removed session 210.
2月 23 13:35:39 kaiu-nb1 systemd-logind[1266]: Removed session 222.
2月 23 13:35:39 kaiu-nb1 systemd-logind[1266]: Session 222 logged out. Waiting for processes to exit.
2月 23 13:35:39 kaiu-nb1 systemd-logind[1266]: New session 224 of user kaiu.
2月 23 13:33:29 kaiu-nb1 systemd-logind[1266]: New session 222 of user sddm.
2月 23 13:33:28 kaiu-nb1 systemd-logind[1266]: Session 221 logged out. Waiting for processes to exit.
2月 23 13:33:28 kaiu-nb1 systemd-logind[1266]: Removed session 207.
2月 23 13:33:27 kaiu-nb1 systemd-logind[1266]: Removed session 217.
2月 23 13:33:27 kaiu-nb1 systemd-logind[1266]: Session 217 logged out. Waiting for processes to exit.
2月 23 13:33:27 kaiu-nb1 systemd-logind[1266]: New session 221 of user kaiu.
2月 23 13:28:50 kaiu-nb1 systemd-logind[1266]: New session 217 of user sddm.
2月 23 13:28:49 kaiu-nb1 systemd-logind[1266]: Session 210 logged out. Waiting for processes to exit.
2月 23 13:05:25 kaiu-nb1 systemd-logind[1266]: Removed session 208.
2月 23 13:05:25 kaiu-nb1 systemd-logind[1266]: Session 208 logged out. Waiting for processes to exit.
2月 23 13:05:25 kaiu-nb1 systemd-logind[1266]: New session 210 of user crash-test.
2月 23 13:01:18 kaiu-nb1 systemd-logind[1266]: New session 208 of user sddm.
2月 23 13:01:18 kaiu-nb1 systemd-logind[1266]: Session 207 logged out. Waiting for processes to exit.
2月 23 13:01:11 kaiu-nb1 systemd-logind[1266]: Removed session 205.
2月 23 13:01:11 kaiu-nb1 systemd-logind[1266]: Session 205 logged out. Waiting for processes to exit.
2月 23 13:01:11 kaiu-nb1 systemd-logind[1266]: New session 207 of user kaiu.
2月 23 13:00:55 kaiu-nb1 systemd-logind[1266]: New session 205 of user sddm.
2月 23 13:00:54 kaiu-nb1 systemd-logind[1266]: Session 202 logged out. Waiting for processes to exit.
2月 23 13:00:38 kaiu-nb1 systemd-logind[1266]: Operation 'sleep' finished.
2月 23 13:00:38 kaiu-nb1 systemd-logind[1266]: Lid opened.
2月 23 13:00:33 kaiu-nb1 systemd-logind[1266]: Suspending...
2月 23 13:00:33 kaiu-nb1 systemd-logind[1266]: Lid closed.
2月 23 12:59:27 kaiu-nb1 systemd-logind[1266]: Removed session 200.
2月 23 12:59:27 kaiu-nb1 systemd-logind[1266]: Session 200 logged out. Waiting for processes to exit.
2月 23 12:59:27 kaiu-nb1 systemd-logind[1266]: New session 202 of user kaiu.
2月 23 12:59:10 kaiu-nb1 systemd-logind[1266]: New session 200 of user sddm.
2月 23 12:59:10 kaiu-nb1 systemd-logind[1266]: Removed session 3.
2月 23 12:59:10 kaiu-nb1 systemd-logind[1266]: Session 3 logged out. Waiting for processes to exit.
2月 23 12:58:50 kaiu-nb1 systemd-logind[1266]: Removed session 198.
2月 23 12:58:50 kaiu-nb1 systemd-logind[1266]: Session 198 logged out. Waiting for processes to exit.
2月 23 12:58:46 kaiu-nb1 systemd-logind[1266]: New session 198 of user sddm.
2月 23 12:25:16 kaiu-nb1 systemd-logind[1266]: Operation 'sleep' finished.
2月 23 12:25:15 kaiu-nb1 systemd-logind[1266]: Lid opened.
2月 23 12:24:41 kaiu-nb1 systemd-logind[1266]: The system will suspend now!
2月 23 12:24:41 kaiu-nb1 systemd-logind[1266]: Lid closed.
2月 23 09:09:45 kaiu-nb1 systemd-logind[1266]: Operation 'sleep' finished.
2月 23 09:09:45 kaiu-nb1 systemd-logind[1266]: Lid opened.
2月 23 01:54:22 kaiu-nb1 systemd-logind[1266]: The system will suspend now!
2月 23 01:54:22 kaiu-nb1 systemd-logind[1266]: Lid closed.
2月 22 23:35:15 kaiu-nb1 systemd-logind[1266]: Watching system buttons on /dev/input/event17 (OPPO Enco Air2 Pro (AVRCP))
2月 22 22:28:30 kaiu-nb1 systemd-logind[1266]: Operation 'sleep' finished.
一樣沒有什麼有價值的訊息 🤔
目前的初步推測是 AMD 顯示界面驅動的哪個地方出問題了或是跟 EFI 自己提供的 framebuffer 驅動衝突所以 framebuffer console 沒有正常顯示
於文字界面終端機模擬器應用軟體中執行下列命令:
journalctl --dmesg | grep efi
並將輸出貼上來
於文字界面終端機模擬器應用軟體中執行下列命令:
journalctl --dmesg | grep frame
並將輸出貼上來
$ sudo journalctl --dmesg | grep efi
2月 22 14:04:27 kaiu-nb1 kernel: efi: EFI v2.8 by American Megatrends
2月 22 14:04:27 kaiu-nb1 kernel: efi: ACPI=0xd7fc2000 ACPI 2.0=0xd7fc2014 TPMFinalLog=0xd7f91000 SMBIOS=0xd93ba000 SMBIOS 3.0=0xd93b9000 ESRT=0xcdda6d18
2月 22 14:04:27 kaiu-nb1 kernel: efi: Remove mem61: MMIO range=[0xe0000000-0xefffffff] (256MB) from e820 map
2月 22 14:04:27 kaiu-nb1 kernel: efi: Remove mem62: MMIO range=[0xfd000000-0xfedfffff] (30MB) from e820 map
2月 22 14:04:27 kaiu-nb1 kernel: efi: Not removing mem63: MMIO range=[0xfee00000-0xfee00fff] (4KB) from e820 map
2月 22 14:04:27 kaiu-nb1 kernel: efi: Remove mem64: MMIO range=[0xfee01000-0xffffffff] (17MB) from e820 map
2月 22 14:04:27 kaiu-nb1 kernel: efi: Remove mem66: MMIO range=[0x420000000-0x4401fffff] (514MB) from e820 map
2月 22 14:04:27 kaiu-nb1 kernel: clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
2月 22 14:04:27 kaiu-nb1 kernel: pci 0000:04:00.0: BAR 0: assigned to efifb
2月 22 14:04:27 kaiu-nb1 kernel: efivars: Registered efivars operations
2月 22 14:04:27 kaiu-nb1 kernel: efifb: probing for efifb
2月 22 14:04:27 kaiu-nb1 kernel: efifb: framebuffer at 0x7fe0000000, using 1984k, total 1984k
2月 22 14:04:27 kaiu-nb1 kernel: efifb: mode is 800x600x32, linelength=3328, pages=1
2月 22 14:04:27 kaiu-nb1 kernel: efifb: scrolling: redraw
2月 22 14:04:27 kaiu-nb1 kernel: efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
2月 22 14:04:27 kaiu-nb1 kernel: tsc: Refined TSC clocksource calibration: 3194.000 MHz
2月 22 14:04:27 kaiu-nb1 systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
2月 22 14:04:27 kaiu-nb1 systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
2月 22 14:04:27 kaiu-nb1 systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
2月 23 12:58:45 kaiu-nb1 kernel: amdgpu 0000:04:00.0: [drm] User-defined mode not supported: "1440x900": 60 274900 1440 2608 2640 2760 900 1603 1609 1660 0x60 0x9
2月 23 13:00:38 kaiu-nb1 kernel: amdgpu 0000:04:00.0: [drm] User-defined mode not supported: "1440x900": 60 274900 1440 2608 2640 2760 900 1603 1609 1660 0x60 0x9
$ sudo journalctl --dmesg | grep frame
2月 22 14:04:27 kaiu-nb1 kernel: signal: max sigframe size: 3376
2月 22 14:04:27 kaiu-nb1 kernel: efifb: framebuffer at 0x7fe0000000, using 1984k, total 1984k
2月 22 14:04:27 kaiu-nb1 kernel: Console: switching to colour frame buffer device 100x37
2月 22 14:04:27 kaiu-nb1 kernel: fb0: EFI VGA frame buffer device
2月 22 14:04:27 kaiu-nb1 kernel: Console: switching to colour frame buffer device 180x56
2月 22 14:04:27 kaiu-nb1 kernel: amdgpu 0000:04:00.0: [drm] fb0: amdgpudrmfb frame buffer device
於終端機模擬器應用軟體中_以 root 身份_執行下列命令:
systemctl restart getty@tty2.service
然後切到 TTY2 控制臺看看登入提示能不能看得到
不過這平台是 kubuntu Ubuntu Desktop 是邪道
有點好奇 Framework 也會隨CPU代數更新嗎?
嗯,我最近是被 Meteor Lake 的資料洗到
還是全黑
現在這個時間的光線看起來感覺像根本沒有背光
於終端機模擬器應用軟體中執行下列命令:
sudo apt install pastebinit
journalctl --dmesg | grep amdgpu | pastebinit -a 'anonymous'
然後將輸出的網址貼上來
隨便選一選結果變這樣
我記得Storage 也能塞Ubuntu 讓筆電開機嘛?
於終端機模擬器應用軟體中執行下列命令:
cat /sys/class/backlight/amdgpu_bl0/*brightness
然後將輸出貼上來
# kaiu @ kaiu-nb1 in ~ [17:58:24]
$ cat /sys/class/backlight/amdgpu_bl0/*brightness
26
26
255
請問現在在使用的這個 Linux 作業系統核心是原廠提供的嗎?
你是指我有沒有自己另外編譯或安裝核心來用?
算是原廠,但有從 grub 的選單選其他核心來用
預設核心不是用 systemd,我現在選這個是為了得到 systemd
沒有長時間試過,目前不知道預設能不能重現問題
1. 重新開機
2. 於開機時立刻按住 Shift 鍵,直到 GRUB 開機選單出現
3. 於 GRUB 開機選單目前使用的開機選項按下「e」鍵編輯開機選項
4. 將開機選項定義中的 linux 行後面的 video=1440x900 參數移除
5. 按下 Ctrl+X 組合鍵或是 F10 鍵啟動系統
6. 嘗試重現問題
我要在 grub Advanced options 我目前使用的核心項目更改參數,還是回到完全原廠的核心去改參數測試?
真的耶,應該是我之前 xendar 亂調的結果,本來沒有輸出在那邊亂搞,重開機就可以了
剛發現問題了,是我用 root 打 neofetch
如果是 user account 就是 2K resolution (正確的)
註:即使在正常的狀態下,tty 的亮度調整鍵也沒有作用
應該吧,我沒買 Storage 擴充卡所以沒試過這個配置
我記得 framework 在散熱和電壓可調性都是在同期 intel P 系筆電最前面了
但用習慣 AMD 的我用起來還是感覺被 Intel 卡的死死,連記憶體都不能超
這大概是唯一需要 I7 以上的環境,因為可以降電壓
我這台主要是覺得可以拿來社群萬一要直播可以用,另外做雙系統對我偶爾用Linux 做一些事會比較方便
朋友拿過微軟 surface ,結果七進七出送維修
windows 11我用起來很順手,就大致上抄過來了