|
home /
infca /
minie
(navigation links)
| Para realizar una acción positiva hay que mantener una visión positiva |
mini PC Desembre 2023
go 2 top
Nou PC - alias "Minie"
2023, Novembre - deix de funcionar MARS.
2023, Desembre - comprem un de nou :
- PC :
- MIPOWCAT MOREFINE Mini PC AMD Ryzen 9 5900HX, CPU de 8 nucleos
- Crucial P3 Plus 1 TB M.2 PCIe Gen4 NVMe intern SSD
- 32 GB DDR4 3200
- Windows 11 Pro
- 4K Dual 2 HDMI/WiFi 6/BT 5.2/USB 3.0 - Advanced Micro Devices
- Amazon, 600 €
- pantalla :
- BenQ EW3270U Monitor 4K, 32 pulgadas
- HDR : High Dynamic Range 10
- entradas HDMI 2.0, USB-C y DisplayPort DP 1.2 (21,6 Gbps) {o 1.4 ? 32.4 Gbps}
- resolució 3840 x 2160
- el USB-C no suministra alimentación
- 329 € Amazon or
PC componentes
Un Porsche ! ... diu en Albert ...
support : https://gominipc.com/support {no existeix}
garantia extendida : eu@gominipc.com + S/N
We have extended your warranty from 12 Months to 24 Months.
During this time, if you have any questions about the product please contact us in time, we will help you solve it as soon as possible.
Best Regards, Alisa.
20250914 :
Hello, Alisa.
I have a question for your tech team.
My "gominipc" works perfect, with a Mint Linux in it.
It is connected to a BenQ monitor, model EW3270U, using HDMI.
Problem (small) description :
Once or twice a day, the screen goes blank and stays blank for 2-3 seconds.
Then, image comes back and all keeps working perfect.
There is NOTHING in the Linux logs, sure.
Environment when this happens :
1) when I switch on a LED strip I have behind the screen.
It happens the first time I switch it on, (not always)
then does not happen if I go off/on again and again.
2) when I connect a USB pen.
This produces a blank screen maybe 40 % of the times,
but again, after the first "blank screen"
I can plug another USB and it does not happen.
3) when I hit hard the table with my fist
it is very probable the screen will go blank, then normal again.
Here also the fenomenon does not repeat if I hit the table again.
4) some random moment of the day,
not described in (1) or (2) or (3).
But never again in next 15 minutes minimum.
What do you think ?
To me it seems as a kind of static electrical charge,
acumulating (on the screen ?)
and producing the blank screen once in a while.
Please let me know if your technical guys have any idea.
As you can see, I can live with that small inconvenience,
but I saw your garanty extension and said "Lets try".
Thank you for your help.
Resposta : gominipc.wordpress.com doesn't exist + email rebotat
Busquem "gominipc.com" :
- web.archive.com - res
- ICANN.org - Organization: DomainsByProxy.com 100 S. Mill Ave, Suite 1600, Tempe, Arizona, 85281 -
Phone: +1 480 624 2599 - an internet service company located in Scottsdale, Arizona
- whois.domaintools.com - llarg
Morefine homepage
Hardware
20231207 : R9-5900HX, RMN : CA11010-BLKEU, S/N S500+CF09B20230700134
Esquema
A la caixa :
- DDR4 : 8 G - 16 G - 32 G - 64 G
- SSD : 128 G - 256 G - 512 G - 1 T - 2 T
Minie
|
.--- motherboard : C89S090126-5900HX
|
.--- CPU : 8 core AMD Ryzen 9 5900HX, x86_64 architecture
|
.--- RAM : 32 GB DDR4
|
.--- VDU : resolución 4K de ultra alta definición, 4096 x 2160 pixels ; frecuencia de actualización de la pantalla 60 Hz ; formato 16:9
|
.--- Display :
|
.--- Network --.-- LAN : 2x RJ45 --.
| | |
| | . -- eno1 ---- 70:70:FC:03:70:32 - Realtek RTL811/8168/8411 PCI Express Gigabit Ethernet Controller
| | |
| | . -- enp2s0 -- 70:70:FC:03:70:31 - Realtek RTL8125 2,5 GbE Controller
| |
| .-- WiFi wlp3s0 : MediaTek model MT7921, AW-XB465NF rev 0A, WF MAC
14:13:33:8B:7E:EF, 802.11 A/B/G/N/AC - MEDIATEK Renoir/Cezanne PCIe GPP Bridge
| |
| .-- WiFi wlx984827ca1628 : TP-Link 802.11ac NIC, MAC
98:48:27:ca:16:28 (Realtek RTL 8111 USB antena)
|
.--- HD --.-- SSD
NVMe 1 TB - "crucial" by Micron, P3, PCIe 3.0, M.2 2280 ; CT1000P3SSD8
| |
| .-- SSD 250 GB
|
.--- ports ---- HDMI *1, DP *1, RJ45 *2, USB *6, type-C *1, audio *1,
M.2 2280 *2, SATA 3.0 *1
vitux : how to display system and hardware details in Linux Mint 20,
as system architecture :
sebas@minie:~$ uname -m
x86_64
Comandes per veure-ho :
sebas@minie:~$ inxi
CPU: 8-core AMD Ryzen 9 5900HX with Radeon Graphics (-MT MCP-)
speed/min/max: 1462/1200/4679 MHz Kernel: 6.2.0-39-generic x86_64 Up: 2h 23m
Mem: 5104.1/31485.4 MiB (16.2%) Storage: 931.51 GiB (20.1% used) Procs: 369
Shell: Sudo inxi: 3.3.13
Detailed output :
sebas@minie:~$ inxi -Fxxxrz
System:
Kernel: 6.5.0-27-generic x86_64 bits: 64 compiler: N/A
Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Machine:
Type: Laptop Mobo: N/A model: N/A serial: <superuser required>
UEFI: American Megatrends LLC. v: S013_V1.2_P3C3M43_NoLogo date: 11/03/2021
CPU:
Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64
type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB
L3: 16 MiB
Speed (MHz): avg: 400 min/max: 400/4680 cores: 1: 400 2: 400 3: 400
4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400
14: 400 15: 400 16: 400 bogomips: 105400
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Cezanne driver: amdgpu v: kernel pcie: speed: 8 GT/s
lanes: 16 ports: active: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 05:00.0
chip-ID: 1002:1638 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5")
s-diag: 1165mm (45.9")
Monitor-1: HDMI-A-0 mapped: HDMI-A-1 model: BenQ EW3270U serial: <filter>
res: 3840x2160 hz: 60 dpi: 140 size: 698x393mm (27.5x15.5")
diag: 801mm (31.5") modes: max: 3840x2160 min: 720x400
OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.54 6.5.0-27-generic)
v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 05:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A
pcie: speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h HD Audio vendor: Realtek driver: snd_hda_intel
v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
Device-4: C-Media CM102-A+/102S+ Audio Controller type: USB
driver: snd-usb-audio bus-ID: 3-4:4 chip-ID: 0d8c:0103 class-ID: 0102
Sound Server-1: ALSA v: k6.5.0-27-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Realtek RTL8125 2.5GbE driver: r8169 v: kernel pcie:
speed: 5 GT/s lanes: 1 port: f000 bus-ID: 01:00.0 chip-ID: 10ec:8125
class-ID: 0200
IF: eno1 state: down mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: e000
bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: down mac: <filter>
Device-3: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
vendor: AzureWave driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1
bus-ID: 03:00.0 chip-ID: 14c3:7961 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Device-4: TP-Link 802.11ac NIC type: USB driver: rtw_8822bu bus-ID: 3-2:2
chip-ID: 2357:0138 class-ID: 0000 serial: <filter>
IF: wlx984827ca1628 state: up mac: <filter>
Bluetooth:
Device-1: IMC Networks Wireless_Device type: USB driver: btusb v: 0.8
bus-ID: 3-3:3 chip-ID: 13d3:3567 class-ID: e001 serial: <filter>
Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
bt-v: 3.0 lmp-v: 5.2 sub-v: 2311 hci-v: 5.2 rev: 919
Drives:
Local Storage: total: 1.14 TiB used: 276.11 GiB (23.7%)
ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P3SSD8 size: 931.51 GiB
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: P9CR30A
temp: 45.9 C scheme: GPT
ID-2: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB
speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1B6Q scheme: MBR
Partition:
ID-1: / size: 424.69 GiB used: 276.06 GiB (65.0%) fs: ext4
dev: /dev/nvme0n1p5
ID-2: /boot/efi size: 96 MiB used: 51.4 MiB (53.5%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
file: /swapfile
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 39.0 C
Fan Speeds (RPM): N/A
Repos:
Packages: 2256 apt: 2245 flatpak: 11
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://packages.linuxmint.com victoria main upstream import backport
2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
1: deb https://deb.opera.com/opera-stable/ stable non-free
Active apt repos in: /etc/apt/sources.list.d/sublime-text.list
1: deb https://download.sublimetext.com/ apt/stable/
Info:
Processes: 410 Uptime: 3h 44m wakeups: 0 Memory: 30.75 GiB
used: 5.09 GiB (16.6%) Init: systemd v: 249 runlevel: 5 Compilers:
gcc: 11.4.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.13
Es el que treu si fas :
- start "System Reports" app
- click "System Information" tab on the left
- click "Copy" button bottom right
Dades - linux mint forum
sebas@minie:~$ inxi -Fxxzr && lsusb && lspci && rfkill list all && mokutil --sb-state
{...}
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 13d3:3567 IMC Networks Wireless_Device
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:0939 Chicony Electronics Co., Ltd Amazon Basics mouse
Bus 001 Device 002: ID 145f:02f0 Trust Trust Input Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter
04:00.0 Non-Volatile memory controller: Micron/Crucial Technology P2 NVMe PCIe SSD (rev 01)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c4)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
SecureBoot disabled
Platform is in Setup Mode
CPU
sebas@minie:~$ lscpu o "cat /proc/cpuinfo" o "sudo lshw"
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 9 5900HX with Radeon Graphics
CPU family: 25
Model: 80
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
Stepping: 0
Frequency boost: enabled
CPU max MHz: 4679,2959
CPU min MHz: 1200,0000
BogoMIPS: 6587.50
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 256 KiB (8 instances)
L1i: 256 KiB (8 instances)
L2: 4 MiB (8 instances)
L3: 16 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec rstack overflow: Mitigation; safe RET, no microcode
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
Srbds: Not affected
Tsx async abort: Not affected
RAM
sebas@minie:~$ cat /proc/meminfo
MemTotal: 32241012 kB
MemFree: 12892356 kB
MemAvailable: 27987952 kB
complete system info in HTML
Use "System Profiler and Benchmark" by searching for "hardinfo".
Run it and select "Generate Report" -> hardinfo_report.html
From command-line :
sebas@minie:~$ hardinfo
Better tool that generates Hardware Summary {with colors indicating problems}
sebas@minie:~$ sudo lshw -html > hardware_summary.html
Instalacio disc SSD
Verifiquem el disc que te el aparell despres de muntar el SSD de 250 GB dintre :
sebas@minie:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p5 425G 179G 225G 45% /
/dev/nvme0n1p1 96M 52M 45M 54% /boot/efi
/dev/sda1 229G 28K 217G 1% /media/sebas/250 GB SSD
Teclat inalambric Trust
ODY Wireless Keyboard, numero de ferencia 24332.
Manual
online
"Fn" + "F1" = "Fast Forward", etc
$ cat /var/log/syslog
Dec 21 17:42:05 minie kernel: [14993.851928] usb 3-4: new full-speed USB device number 4 using xhci_hcd
Dec 21 17:42:05 minie kernel: [14994.022963] usb 3-4: New USB device found, idVendor=145f, idProduct=02f0, bcdDevice= 1.00
Dec 21 17:42:05 minie kernel: [14994.022977] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 21 17:42:05 minie kernel: [14994.022984] usb 3-4: Product: Trust Input Device
Dec 21 17:42:05 minie kernel: [14994.022990] usb 3-4: Manufacturer: Telink
Dec 21 17:42:05 minie kernel: [14994.057411] input: Telink Trust Input Device Mouse as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-4/3-4:1.0/0003:145F:02F0.0004/input/input17
Dec 21 17:42:05 minie kernel: [14994.057937] input: Telink Trust Input Device Consumer Control as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-4/3-4:1.0/0003:145F:02F0.0004/input/input18
Dec 21 17:42:05 minie kernel: [14994.116518] input: Telink Trust Input Device System Control as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-4/3-4:1.0/0003:145F:02F0.0004/input/input19
Dec 21 17:42:05 minie kernel: [14994.116923] hid-generic 0003:145F:02F0.0004: input,hidraw1: USB HID v1.11 Mouse [Telink Trust Input Device] on usb-0000:05:00.4-4/input0
Dec 21 17:42:05 minie kernel: [14994.123507] input: Telink Trust Input Device as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-4/3-4:1.1/0003:145F:02F0.0005/input/input20
Dec 21 17:42:05 minie kernel: [14994.180636] hid-generic 0003:145F:02F0.0005: input,hidraw2: USB HID v1.11 Keyboard [Telink Trust Input Device] on usb-0000:05:00.4-4/input1
Dec 21 17:42:05 minie mtp-probe: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-4"
Dec 21 17:42:05 minie mtp-probe: bus: 3, device: 4 was not an MTP device
Dec 21 17:42:05 minie mtp-probe: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-4"
Dec 21 17:42:05 minie mtp-probe: bus: 3, device: 4 was not an MTP device
Configuracio
BIOS
Per entrar a la BIOS : arrencar i apretar ESCape moltes vegades
BIOS "APTIO - American Megatrends International" version 2.21.1277
https://www.youtube.com/watch?v=SH81H2SG-p8 : video amb totes les opcions
Secure boot : minut 3:43
there is an option to "Restore Factory Keys" and "Reset To Setup Mode"
minut 3:45 -
Secure Boot feature is Active.
if Secure Boot is Enabled, Platform Key (PK) is enrolled and the System is in User mode.
The mode change requires platform reset.
Secure Boot can be enabled when System in User mode
Repeat operation after enrolling Platform Key (PK)
set Secure Boot Mode to "Custom",
then do "Restore Factory Keys"
say "no" to "Reset the system",
set "Secure Boot" to Enabled, and
set "Secure Boot Mode" back to "Standard" - https://www.youtube.com/watch?v=03Zjo-RyYbI
BIOS 5.19, UEFI 2.7
discs durs
En tenim dos :
sebas@minie:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 232,9G 0 disk disk SSD de 250 GB
└─sda1 8:1 0 232,9G 0 part
nvme0n1 259:0 0 931,5G 0 disk disk SSD de 1 TB
├─nvme0n1p1 259:1 0 100M 0 part /boot/efi
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 497,9G 0 part
├─nvme0n1p4 259:4 0 1000M 0 part
└─nvme0n1p5 259:5 0 432,6G 0 part /
Vist en detall :
sebas@minie:~$ sudo fdisk -l
Disk /dev/nvme0n1: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: CT1000P3SSD8
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 14A671AB-2C79-4D18-90FC-94530AF82F2E
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 1044344758 1044105143 497,9G Microsoft basic data
/dev/nvme0n1p4 1951475712 1953523711 2048000 1000M Windows recovery environment
/dev/nvme0n1p5 1044344832 1951475711 907130880 432,6G Linux filesystem
Partition table entries are not in disk order.
Disk /dev/sda: 232,89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: 2115
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xc7e95cb7
Device Boot Start End Sectors Size Id Type
/dev/sda1 1953 488397167 488395215 232,9G 83 Linux
how to resize SSD
chatGPT prompt :
I have a 1 TB SSD disk, split into two : 500 GB are NTFS with windows, 500 GB are ext4 with Linux.
What is the easiest way to resize it, making 200 GB for Windows and 800 GB for Linux ?
Preparation :
In Windows disable "Fast Startup"
Control Panel → Power Options → Choose what the power buttons do → Change settings currently unavailable → uncheck Fast Startup
Then run a filesystem check - open Command Prompt as Administrator and run
chkdsk C: /f
Reboot if requested.
Easiest & safest method: GParted Live USB
- get gparted
- write it onto a USB using Rufus
audio
Al bus hi tenim :
sebas@minie:~$ lspci | grep Audio
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller *** HDMI/TV
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 *** USB
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01) ***
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller *** auriculars
Output device(s) :
HDMI/DisplayPort 2 Renoir Radeon High Definition Audio Controller *** Digital Stereo (HDMI2) *** TV
Digital Output (S/PDIF) CM102-A+/102S+ Audio Controller *** Digital Stereo (IEC958) *** USB
Analog Output CM102-A+/102S+ Audio Controller *** USB
Headphones Family 17h (Models 10h-1Fh) HD Audio Controller *** Digital Stereo (IEC958) *** auriculars
Input device(s) :
Headphones Family 17h (Models 10h-1Fh) HD Audio Controller *** Analog Stereo *** auriculars/micro
IEC958 i S/PDIF
El IEC958 es un estándar que define conexiones digitales para electrónica de consumo basadas en S/PDIF.
S/PDIF is a digital audio interface used in consumer audio equipment to output audio over relatively short distances.
pulseaudio
PulseAudio is a general purpose sound server
intended to run as a middleware between your applications and your hardware devices,
either using Advanced Linux Sound Architecture (ALSA) or Open Sound System (OSS).
Pulseaudio serves as an intermediate software layer
that routes audio between applications and hardware devices. It provides a whole suite of tools for managing sound
Launch an advanced GUI audio configuration tool :
a volume control for the PulseAudio sound server
sebas@minie:~$ pavucontrol {GUI interface, PulseAudioVomume Control}
sebas@minie:~$ pactl info - control a running PulseAudio sound server
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 20
Tile Size: 65472
User Name: sebas
Host Name: minie
Server Name: pulseaudio
Server Version: 15.99.1
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_05_00.6.iec958-stereo
Default Source: alsa_input.pci-0000_05_00.6.analog-stereo
Cookie: b72b:7e79
Unes estadistiques :
sebas@minie:~$ pactl stat
Currently in use: 85 blocks containing 596,2 KiB bytes total.
Allocated during whole lifetime: 1763214 blocks containing 6,1 MiB bytes total.
Sample cache size: 11,5 KiB
List available sound devices :
sebas@minie:~$ pactl list short sinks
0 alsa_output.pci-0000_05_00.1.hdmi-stereo-extra1.monitor module-alsa-card.c s16le 2ch 44100Hz IDLE {output device is HDMI}
2 alsa_output.pci-0000_05_00.6.iec958-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
3 alsa_input.pci-0000_05_00.6.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
8 alsa_output.usb-C-Media_INC._USB_Sound_Device-00.analog-stereo.monitor module-alsa-card.c s16le 2ch 48000Hz SUSPENDED
List sink details, like volume levels :
$ pacmd list-sinks
* index: 2
name: <alsa_output.pci-0000_05_00.6.iec958-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9037
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
audio troubleshoot
202501 - no funcionen els auriculars
Using pavucontrol the headphones are displayed as receiving sound.
Bona guia
sebas@minie:~$ pacmd list-cards
3 card(s) available.
index: 0
name: <alsa_card.pci-0000_05_00.1>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "0"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfcbc8000 irq 74"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:05:00.1"
index: 1
name: <alsa_card.usb-C-Media_INC._USB_Sound_Device-00>
driver: <module-alsa-card.c>
owner module: 8
properties:
alsa.card = "1"
alsa.card_name = "Audio Advantage MicroII"
alsa.long_card_name = "C-Media INC. Audio Advantage MicroII at usb-0000:05:00.3-1, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:05:00.3-usb-0:1:1.0"
index: 2
name: <alsa_card.pci-0000_05_00.6>
driver: <module-alsa-card.c>
owner module: 9
properties:
alsa.card = "2"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfcbc0000 irq 75"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:05:00.6"
sebas@minie:~$ pacmd list-sinks
3 sink(s) available.
index: 0
name: <alsa_output.pci-0000_05_00.1.hdmi-stereo-extra1>
driver: <module-alsa-card.c>
* index: 2
name: <alsa_output.pci-0000_05_00.6.iec958-stereo>
driver: &l;module-alsa-card.c>
index: 4
name: <alsa_output.usb-C-Media_INC._USB_Sound_Device-00.iec958-stereo>
driver: <module-alsa-card.c>
Try playing a sound :
sebas@minie:~$ aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
Unplug the headphones and try :
sebas@minie:~$ sudo alsa force-reload
Unloading ALSA sound driver modules:
snd-sof-amd-acp63 snd-sof-amd-vangogh snd-sof-amd-rembrandt snd-sof-amd-renoir snd-hda-codec-realtek
snd-sof-amd-acp snd-sof-pci snd-hda-codec-generic snd-hda-codec-hdmi snd-sof-xtensa-dsp snd-sof
snd-hda-intel snd-sof-utils snd-intel-dspcfg snd-intel-sdw-acpi snd-hda-codec snd-soc-core
snd-usb-audio snd-hda-core snd-usbmidi-lib snd-compress snd-hwdep snd-ump snd-pcm-dmaengine
snd-seq-midi snd-seq-midi-event snd-pci-ps snd-rpl-pci-acp6x snd-rawmidi snd-acp-pci snd-acp-legacy-common
snd-pci-acp6x snd-seq snd-pcm snd-pci-acp5x snd-seq-device snd-timer snd-rn-pci-acp3x snd-acp-config
snd-soc-acpi snd-pci-acp3x
(failed: modules still loaded:
snd-hda-codec-realtek snd-hda-codec-generic snd-hda-codec-hdmi snd-hda-intel
snd-intel-dspcfg snd-intel-sdw-acpi snd-hda-codec snd-usb-audio snd-hda-core
snd-usbmidi-lib snd-hwdep snd-ump snd-rawmidi snd-pcm snd-seq-device snd-timer).
Loading ALSA sound driver modules:
snd-sof-amd-acp63 snd-sof-amd-vangogh snd-sof-amd-rembrandt snd-sof-amd-renoir snd-hda-codec-realtek
snd-sof-amd-acp snd-sof-pci snd-hda-codec-generic snd-hda-codec-hdmi snd-sof-xtensa-dsp snd-sof
snd-hda-intel snd-sof-utils snd-intel-dspcfg snd-intel-sdw-acpi snd-hda-codec snd-soc-core
snd-usb-audio snd-hda-core snd-usbmidi-lib snd-compress snd-hwdep snd-ump snd-pcm-dmaengine
snd-seq-midi snd-seq-midi-event snd-pci-ps snd-rpl-pci-acp6x snd-rawmidi snd-acp-pci snd-acp-legacy-common
snd-pci-acp6x snd-seq snd-pcm snd-pci-acp5x snd-seq-device snd-timer snd-rn-pci-acp3x snd-acp-config
snd-soc-acpi snd-pci-acp3x.
I la sintaxi es :
sebas@minie:~$ alsa -h
Usage: /sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume}
Una altra comanda (i van ...) :
sebas@minie:~$ iecset # set or dump IEC958 status bits
Mode: consumer
Data: audio
Rate: 44100 Hz
Copyright: permitted
Emphasis: none
Category: general
Original: 1st generation
Clock: 1000 ppm
Configuracio ALSA :
sebas@minie:~$ cat /etc/modprobe.d/alsa-base.conf
Another configuration file : "/home/pi/.asoundrc" (? quan apareix ?)
Tenim aquestes targes :
sebas@minie:~$ cat /proc/asound/cards
0 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfcbc8000 irq 72
1 [MicroII ]: USB-Audio - Audio Advantage MicroII
C-Media INC. Audio Advantage MicroII at usb-0000:05:00.3-1, full speed
2 [Generic_1 ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfcbc0000 irq 73
Play a sound :
sebas@minie:~$ speaker-test -c2
speaker-test 1.2.6
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
0 - Front Left
1 - Front Right
Time per period = 10,931145
0 - Front Left {loop}
To USB : {ok}
sebas@minie:~$ speaker-test -Dsurround40:MicroII -c2
speaker-test 1.2.6
Playback device is surround40:MicroII
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 96000
Period size range from 48 to 48000
Using max buffer size 96000
Periods = 4
was set period_size = 24000
was set buffer_size = 96000
0 - Front Left
1 - Front Right
Compte que produeix "Playback open error: -16,Device or resource busy"
To HDMI : {no sound}
$ speaker-test -c 2 -t wav -D plughw:HDMI
sebas@minie:~$ speaker-test -Dhdmi:Generic -c4
To the headphones : {no sound}
sebas@minie:~$ speaker-test -Dplug:front -c2 -l5 -twav
speaker-test 1.2.6
Playback device is plug:front
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -2,No such file or directory {ve a dir "device no existent"}
Comanda correcte :
sebas@minie:~$ speaker-test -Dsurround40:Generic_1 -c2
speaker-test 1.2.6
Playback device is surround40:Generic_1
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
0 - Front Left
1 - Front Right
Time per period = 8,911005
Get a list of all of the sound cards in your system and the devices associated with those cards :
sebas@minie:~$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default
Playback/recording through the PulseAudio sound server
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct hardware device without any conversions
plughw:CARD=Generic,DEV=7
HD-Audio Generic, HDMI 1
Hardware device with all software conversions
front:CARD=Generic_1,DEV=0
HD-Audio Generic, ALC269VB Analog
Front output / input
usbstream:CARD=Generic_1
HD-Audio Generic
USB Stream Output
Predefined sound files are located at "/usr/share/sounds/alsa"
xarxa
sebas@minie:~$ ifconfig -a
eno1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 70:70:fc:03:70:32 txqueuelen 1000 (Ethernet)
enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 70:70:fc:03:70:31 txqueuelen 1000 (Ethernet)
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.146 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::6281:94:b2a6:8790 prefixlen 64 scopeid 0x20<link>
ether 14:13:33:8b:7e:ef txqueuelen 1000 (Ethernet)
foss linux :
the ultimate guide to Linux Mint network configuration
Si conectem una antena USB com "TP-Link 802.11ac NIC" (va millor a 5 GHz), millor treure el adaptador intern, que te tendencia a conectar-se a 2,4 GHz :
sebas@minie:~$ sudo ifconfig wlp3s0 down
Atencio : desapareix de "Network Manager" ... i torna en rebotar la maquina ...
wifi
El hardware es :
- TP-Link 802.11ac NIC
- MEDIATEK Renoir/Cezanne PCIe GPP Bridge
sebas@minie:~$ lspci | grep "Network"
03:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter
Els adaptadors :
sebas@minie:~$ ifconfig
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.147 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::6281:94:b2a6:8790 prefixlen 64 scopeid 0x20<link>
ether 14:13:33:8b:7e:ef txqueuelen 1000 (Ethernet)
RX packets 20984 bytes 20195292 (20.1 MB)
RX errors 0 dropped 23 overruns 0 frame 0
TX packets 10880 bytes 1441791 (1.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlx984827ca1628: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::1d49:40c6:25f4:99c prefixlen 64 scopeid 0x20<link>
ether 98:48:27:ca:16:28 txqueuelen 1000 (Ethernet)
RX packets 2408 bytes 354308 (354.3 KB)
RX errors 0 dropped 17 overruns 0 frame 0
TX packets 637 bytes 75361 (75.3 KB)
Why /etc/network/interfaces file is empty
It means that our network is managed by another tool.
sebas@minie:~$ systemctl status NetworkManager.service
● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-11-26 10:39:57 CET; 19min ago
Docs: man:NetworkManager(8)
Main PID: 770 (NetworkManager)
Tasks: 3 (limit: 37571)
Memory: 10.2M
CPU: 491ms
CGroup: /system.slice/NetworkManager.service
└─770 /usr/sbin/NetworkManager --no-daemon
IP fixe
Assignem a Minie una IP fixe per poder arribar-hi des fora ... 192.168.1.134 {2023.12.23}
Tenim problemes (temps de ping i de acces a DNS) -> fem servir duckDNS
quin DNS tenim ?
sebas@minie:~$ nslookup google.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: google.com
Address: 216.58.209.78
Name: google.com
Address: 2a00:1450:4003:801::200e
sebas@minie:~$ dig google.com
; DiG 9.18.30-0ubuntu0.22.04.2-Ubuntu - google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44892
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 254 IN A 216.58.209.78
;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Tue Jul 22 19:51:15 CEST 2025
;; MSG SIZE rcvd: 55
On es configura :
sebas@minie:~$ cat /etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
search .
Tambe febt servir "Network" UI
duckDNS
Accés SSH
Per poder accedir a Minie via SSH ...
- verify SSH Server is installed -
sebas@minie:~$ dpkg --list | grep ssh
ii openssh-client 1:8.9p1-3ubuntu0.5 amd64 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:8.9p1-3ubuntu0.5 amd64 secure shell (SSH) server, for secure access from remote machines
- if not, install SSH server using "Software Manager"
- verify status :
sebas@minie:~$ sudo systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2023-12-23 20:11:49 CET; 2min 31s ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 17489 (sshd)
Tasks: 1 (limit: 37612)
Memory: 1.7M
CPU: 13ms
CGroup: /system.slice/ssh.service
└─17489 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
Dec 23 20:11:49 minie systemd[1]: Starting OpenBSD Secure Shell server...
Dec 23 20:11:49 minie sshd[17489]: Server listening on 0.0.0.0 port 22.
Dec 23 20:11:49 minie sshd[17489]: Server listening on :: port 22.
Dec 23 20:11:49 minie systemd[1]: Started OpenBSD Secure Shell server.
- display status :
sebas@minie:~$ systemctl is-enabled ssh
enabled
sebas@minie:~$ systemctl is-active ssh
active
- to start it at boot :
sudo systemctl enable sshd
- modify welcome message :
xarxes.htm
makeuseof
Maquines conegudes
Quan tenen IP fixe les posem aqui :
$ cat /etc/hosts
127.0.0.1 localhost
# sebas 2023.12.12 :
192.168.1.123 pi3 r3
192.168.1.200 pi4 r4
192.168.1.222 pi0 r0
mode promiscu
If we want to see all packets sent by Fronius,
we have to activate the "promiscuous" mode of the adapter :
sebas@minie:~$ ifconfig
wlx984827ca1628: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
sebas@minie:~$ sudo ifconfig wlx984827ca1628 promisc
sebas@minie:~$ ifconfig
wlx984827ca1628: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
Des Minie no veiem el trafic entre R4 i Fronius, ni Fronius a la APP de Android
Des el R4 si es veu :
pi@R4:~ $ systemctl stop --user ping_fronius.service
pi@R4:~ $ sudo tcpdump -ni wlan0 host 192.168.1.229
21:00:39.872641 IP 192.168.1.200.37540 > 192.168.1.229.80: ... length 120: HTTP: GET /solar_api/v1/GetPowerFlowRealtimeData.fcgi HTTP/1.0
21:00:39.892522 IP 192.168.1.229.80 > 192.168.1.200.37540: ... length 1138: HTTP: HTTP/1.0 200 OK
wireshark a minie
Instalem 3.6.2 (20241203)
Please check to make sure you have sufficient permissions.
On Debian and Debian derivatives such as Ubuntu, if you have installed Wireshark from a package, try running
sudo dpkg-reconfigure wireshark-common
see /usr/share/doc/wireshark-common/README.Debian.gz
Should non-superusers be able to capture packets? -> Yes
adding yourself to the "wireshark" group by running
$ sudo usermod -a -G wireshark {your username}
bash
sebas@minie:~$ cat .bash_aliases
echo "+++ .bash_aliases - v1.1d 20231211"
nd() { mkdir $1 && cd $1; }
web2() { clear; }
alias busca='grep -i -s -m 1'
alias cd..='cd ..'
alias cls='clear'
alias dfh='df -h | grep "/dev/n*"'
alias dirs='du -hs * | sort -rh | head -5'
alias ed='/opt/sublime_text/sublime_text '
alias ed='/home/sebas/eines/ST/sublime_text/sublime_text '
alias esc='clear && cd /home/sebas/dades/escacs/pgns/1_SAG_ya/1_JAMC'
alias ffind='sudo find . -name'
alias fq='ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 ' # resolucio de una peli
alias fm='nemo . &'
alias fr='cd /home/sebas/dades/python/fronius && ls -al'
alias ing='cd /home/sebas/dades/_local_moni/ING/compte_familia && ls -al'
alias last='last -aiFn5'
alias ls='ls -als --color=auto'
alias md=mkdir
alias miraps="ps -ef | grep -v grep | grep"
alias mydns='cat /etc/resolv.conf'
alias myessid='/sbin/iwgetid'
alias myfs='df -h | grep dev'
alias mygw='cat /etc/network/interfaces'
alias myhost='host pi0alby.hopto.org'
alias myip='curl -m 2 -s icanhazip.com'
alias myopsys='cat /etc/os-release'
alias mysysop='lsb_release -a'
alias mynoip2='host pi0alby.ddns.net'
alias myports='netstat -peanut'
alias myrestart='sudo cat /var/log/syslog | grep "Linux version"'
alias mypxe='sudo systemctl status tftpd-hpa'
alias myusers='sudo tail -f /var/log/auth.log'
alias mywifi='/sbin/iwgetid'
alias mywifis='nmcli device wifi list'
alias pgns='cd /home/sebas/dades/escacs/pgns/1_SAG_ya/ && pwd'
alias pi='ping 8.8.8.8'
alias r0='ssh pi@r0'
alias r3='ssh sag@r3'
alias r4='ssh sebas@r4'
alias rrg='cd /home/sebas/dades/ramon && ls -al'
alias ser='systemctl --user '
alias slog='sudo tail -f /var/log/syslog'
alias stre='cd /home/sebas/.stremio-server/stremio-cache && ls -al'
alias web='clear && cd /home/sebas/dades/_local_tinet_files && l'
alias wscan='sudo iwlist wlx8416f90e4d75 scan | grep ESSID'
alias whoiam=whoami
echo "--- .bash_aliases - v1.1d 20231211"
System Monitor
To start the System Monitor automatically whenever you power on your Linux Mint machine and log in, you can add it to your Startup Applications.
Using the Graphical Interface (Cinnamon/MATE/XFCE)
- Open your Application Menu (the Mint icon in the corner).
- Search for "Startup Applications" and open it.
- Click the + (Add) button at the bottom.
- Choose "Choose application".
- Search for System Monitor in the list, select it, and click Add Application.
If you want to customize how it starts (for example, delayed by a few seconds to let the desktop finish loading),
you can select it in the list after adding it and adjust the "Startup delay".
display free space for 2 hard disks
Prompt Gemini : linux mint desklet to display 2 hard disk free space
Creating a custom desklet for Linux Mint (Cinnamon) typically involves writing a small JavaScript applet,
but for most users, the most efficient and powerful way to display system stats like disk space is using Conky.
However, if you want a native desklet specifically, here is how you can set one up or use the best existing tools :
the "Disk Space" desklet
- Right-click your desktop and select "Add Desklets"
- Click the "Download" tab and click "Yes" to update the cache.
- Search for "Disk Space"
- Click the "Download" icon next to it.
- Switch back to the "Manage" tab, select "Disk Space" and click the "(+) Add to desktop" button
- To display 2 disks:
To monitor two disks you actually use multiple instances of the desklet rather than trying to fit two paths into a single widget.
- Right-click on your desktop and select "Add Desklets", in the "Manage tab" select "Disk Space", and click the "(+) Add to desktop" button (twice)
- to display second disk space :
- Right-click the desklet on your desktop and select "Configure"
- In the settings, you can add multiple paths (e.g., / for your system and /media/user/data for your second drive).
Software
Posarem un dual-boot, un GRUB versio 2.06
Les opcions inicials son :
- Linux Mint 21.2 Cinnamon {default desktop environment}
- Advanced options for Linux Mint 21.2 Cinnamon
- Windows Boot Manager (on /dev/nvme0n1p1)
- UEFI Firmware Settings
2023 02 20 - 21.3 "Virginia" available
W11
Ve un W11 Pro pre-instalat
W11 Secure Mode
"System Information" -> Secure Boot
Linux MINT
Linux Mint is developed and maintained by Clement Lefebvre (also known as "Clem") and the Linux Mint Team.
Instalem Linux Mint 21.1 "Cinnamon", codename "Vera" - see all versions
Download here
Linux Mint 21.2 "Victoria" -
https://www.linuxmint.com/edition.php?id=310 = EDGE - 2,8 GB -
3.014.000.640 linuxmint-21.2-cinnamon-64bit-edge.iso
https://linuxmint-installation-guide.readthedocs.io/en/latest/Instalation guide
molt important : baixa la versio EDGE pq aquest hardware es nou
cremes la ISO a un USB (Rufus sota W7)
ves a la BIOS i desactiva el UEFI {no m'ha calgut - amb el Rufus correcte bota directe}
Aquest es el nostre kernel :
sebas@minie:~$ uname -a
Linux minie 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
I la versio de Minie :
sebas@minie:~$ cat /etc/issue
Linux Mint 21.2 Victoria \n \l
sebas@minie:~$ hostnamectl
Static hostname: minie
Icon name: computer-laptop
Chassis: laptop
Machine ID: 95cfbeca9d1747b0a63d6a8026914614
Boot ID: 1462c17029a74b20b0deecfa547340b4
Operating System: Linux Mint 21.2
Kernel: Linux 6.5.0-41-generic
Architecture: x86-64
sebas@minie:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 21.2
Release: 21.2
Codename: victoria
sebas@minie:/etc/linuxmint$ cat /etc/linuxmint/info
RELEASE=21.2
CODENAME=victoria
EDITION="Cinnamon"
DESCRIPTION="Linux Mint 21.2 Victoria"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=https://www.linuxmint.com/rel_victoria_cinnamon_whatsnew.php
RELEASE_NOTES_URL=https://www.linuxmint.com/rel_victoria_cinnamon.php
USER_GUIDE_URL=https://www.linuxmint.com/documentation.php
GRUB_TITLE=Linux Mint 21.2 Cinnamon
O be
sebas@minie:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 21.2
Release: 21.2
Codename: victoria
Mint community and forums
Linux Mint community
To prevent SPAM bots from harming our community, we now require a registration code.
Login to the Linux Mint forums and go to your user control panel (click on your name).
Your registration code will be written at the bottom of the panel.
Software Rendering, Mint initial menu, before password
The Software Rendering Mode is specifically related to the Cinnamon edition of Linux Mint,
and it is a mode in which you run the system when there's some sort of a problem with Cinnamon being able to directly access your video card,
or acquire the resources it needs in order to run efficiently.
update MINT
$ apt list --upgradable
$ sudo apt-get upgrade
new version (2024.07)
Linux Mint 22 - (LTS), supported until April 2029.
Linux Mint 22 is built on the new Ubuntu 24.04 package base and employs the latest 6.8 version of the Linux kernel.
Download it here
el USB no bota al Minie (pero si al W7)
https://www.minitool.com/lib/secure-boot.html
USB drive formatted in the FAT32 file system
Rufus configuration :
partition scheme no MBR but GPT
target system UEFI (non CSM)
no "ISO Image mod" but "DD Image mode"
error de la BIOS en engegar i sortida de DMSEG
[ 0.963873] PM: Magic number: 3:870:175
[ 0.963923] acpi device:0b: hash matches
[ 0.965340] RAS: Correctable Errors collector initialized.
[ 0.965454] ACPI Error: No handler for Region [ECRM] (000000000b5a737a) [EmbeddedControl] (20221020/evregion-130)
[ 0.965462] fbcon: Taking over console
[ 0.965511] Console: switching to colour frame buffer device 100x37
[ 0.965786] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20221020/exfldio-261)
[ 0.965804] No Local Variables are initialized for Method [_EVT]
[ 0.965806] Initialized Arguments for Method [_EVT]: (1 arguments defined for method invocation)
[ 0.965807] Arg0: 000000009f01a4cd <Obj> Integer 0000000000000000
[ 0.965815] ACPI Error: Aborting method \_SB.GPIO._EVT due to previous error (AE_NOT_EXIST) (20221020/psparse-529)
[ 0.967050] Freeing unused decrypted memory: 2036K
Solucio : Add 'acpi=off` -
stackexchange
what is ACPI ? do I need it ?
wiki -
sure we need it : look at "ACPI" messages in system.log
Aplicacions
Mint desktop
Cinnamon is Mint's default desktop environment
Cinnamon uses GPU acceleration via Muffin, its window manager.
sebas@minie:~$ echo $XDG_CURRENT_DESKTOP
X-Cinnamon
(russian) keyboard
- start "System Settings"
- under "Hardware", click "Keyboard"
- select "Layout" and "(+)" add a new keyboard
- click "Options" and set "Switching to another layout" to be "Alt+Space", as Android
- now you can easily switch keyboards via the keyboard menu in the lower right corner of the screen (or via the keyboard shortcut you defined in the previous step)
div vun
Terminal font size
- start "Terminal"
- select "Edit" and "Preferences"
- "Text", "Custom Font", "Monospace 18"
help Gnome
Minimize all windows (toggle)
- start "System Settings"
- select "General"
- "Show Desktop" = "Super" + "D" ; "Super" is "Windows" key
Mint display server
sebas@minie:~$ echo $XDG_SESSION_TYPE
x11
Mint WorkSpaces
"Ctrl" + "Alt" + "Arrows" to move between workspaces
"Ctrl" + "Alt" + "Shift" + "Arrows" to move windows between workspaces.
mint forums
Mint file manager
We have "Nemo" v5.8.5 - display it using "Help" +"About"
Start it using "nemo ." - linuxconfig.org
If "Open in Terminal" does not work, use
$ nemo -q
Folder item count
- select "Icon view"
- adjust zoom level (slide at bottom right) so the "items NN" fits in the screen
Filenames that start with "."
Display/hide files that start with . or end with ~ using "CTRL" + "H"
Recent Files
Nowadays you can pull up the menu, type 'privacy' and click on the 'privacy' icon that should appear. Turn off 'remember recently accessed files'.
Bookmarks
Go to a directory and press "CTRL" + "D" - the location is stored in "Bookmarks", as in browsers ...
Nemo display possibilities
When you open a directory using "Nemo", there are 3 possible views :
- icon view (4 squares, on the left)
- list view (3 dot and dash, center) - "Name", "Size", "Type", "Modified"
- compact view (6 small dashes, on the right)
"Save Picture As" view modes
Under Linux Mint, when I display a picture and go "Save Image as" ... i get into Nemo in "list view" mode - I would like to change it to "compact view" - can it be done ?
In Linux Mint, the "Save As" dialog is actually handled by the GTK file chooser, not Nemo itself.
Because of this, the view settings in your Nemo file manager don't always sync up with the save dialogs in your browser or image viewer.
Solution : use "dconf-editor"
FTP client : FileZilla
$ sudo apt update && sudo apt upgrade
$ sudo apt install filezilla
linux capable
Filezilla text size follows "System Settings > Font Selection > Default Font"
Mint Trash icon (and others)
- search for "System Settings"
- select "Desktop"
- enable/disable desktop icons you prefer, as Trash or Home
editor : VIM
Required by "crontab"
sebas@minie:~$ sudo apt install vim
editor : SublimeText
$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null
$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
$ sudo apt-get update
$ sudo apt-get install sublime-text
linux hint
Update it :
sebas@minie:~$ sudo apt-get update
Save configuration :
sebas@minie:~/.config/sublime-text/Packages/User$ cat Preferences.sublime-settings
{
"default_encoding": "UTF-8",
"draw_white_space": "all",
"default_line_ending": "unix", // or "windows"
"font_size": 17,
"translate_tabs_to_spaces": true, // very important on python files !
"hot_exit": false,
"remember_open_files": false
}
out of repository
La versio que manega el "Update Manager" es troba a "/home/sebas/eines/ST/sublime_text/sublime_text"
No fem servir "Update Manager" (inhibim aquest package) i ho fem a ma :
- go to ST download page
- look for 64 bit .tar.xz package
- download sublime_text_build_4192_x64.tar.xz
- install it using
sebas@minie:~/eines/ST$ tar -xvf /home/sebas/Downloads/sublime_text_build_4192_x64.tar.xz
- use the editor it via this alias : alias ed='/home/sebas/eines/ST/sublime_text/sublime_text '
SublimeText macros
sebas@minie:~/.config/sublime-text/Packages/User$ cat u-link.sublime-macro
[
{
"args":
{
"characters": "<p> <ul> \n <li> \n"
},
"command": "insert"
},
{
"args": null,
"command": "left_delete"
},
{
"args":
{
"characters": "</ul> \n"
},
"command": "insert"
}
]
assignacio macros SublimeText a tecles
sebas@minie:~/.config/sublime-text/Packages/User$ cat Default\ \(Linux\).sublime-keymap
[
{ "keys": ["ctrl+shift+a"], "command": "run_macro_file", "args": {"file": "Packages/User/a-link.sublime-macro"} },
{ "keys": ["ctrl+shift+q"], "command": "run_macro_file", "args": {"file": "Packages/User/q-link.sublime-macro"} },
{ "keys": ["ctrl+shift+u"], "command": "run_macro_file", "args": {"file": "Packages/User/u-link.sublime-macro"} }
]
Virtual Box
Cal fer servir la versio 7
client de correu : Mutt
sebas@minie:~$ sudo apt-get install mutt
sebas@minie:~$ mkdir -p ~/.mutt/cache/headers
sebas@minie:~$ mkdir ~/.mutt/cache/bodies
sebas@minie:~$ touch ~/.mutt/certificates
sebas@minie:~$ echo "my BODY" | mutt -s "my SUBJECT" -- nom.destinatari@gmail.com
script tool : REXX
Regina REXX
Regina REXX, using "Software Manager"
sebas@minie:~$ rexx -v
REXX-Regina_3.6 5.00 31 Dec 2011
sebas@minie:~$ which rexx
/usr/bin/rexx
Homepage - versio 3.9.5 ?
oORexx
Homepage - release 4.2.0 : fitxer ubuntu.deb
Use the installer ooRexx-5.0.0-12333.linuxmint20.x86_64.deb
The installation install itself to /usr/local and you should be able to run Rexx from anywhere
sourgeForce
I can really recommend you to try ooRexx 5.
It is very stable since years and have some really nice (addictive really) features like Address --- With --- Using
and a very efficient garbage collector just to mention a few highlights.
Bluestacks 4 Linux
Bluestacks 4 Linux -> genymotion
StremIO v 4.4.168
Per veure pelis
Compte amb la cache
alias stre='cd /home/sebas/.stremio-server/stremio-cache && ls -al' ; Ubuntu
editor de video
AVIdemux :
- open file
- move to start of part to remove
- "edit" -> "set marker A"
- move to end
- "edit" -> "set marker B"
- "edit" -> "cut"
- "file" -> "save" -> set new file name for "the rest of the film"
EPSON scanner
El conectem via USB :
sebas@minie:~$ dmesg
[10314.923064] usb 3-4: new high-speed USB device number 5 using xhci_hcd
[10315.076643] usb 3-4: New USB device found, idVendor=04b8, idProduct=082b, bcdDevice= 1.00
[10315.076657] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10315.076663] usb 3-4: Product: USB2.0 MFP(Hi-Speed)
[10315.076668] usb 3-4: Manufacturer: EPSON
[10315.076673] usb 3-4: SerialNumber: 005020609072352260
[10315.092204] usblp 3-4:1.1: usblp1: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x04B8 pid 0x082B
[10315.092232] usbcore: registered new interface driver usblp
[10315.092235] usb-storage 3-4:1.2: USB Mass Storage device detected
[10315.092345] scsi host1: usb-storage 3-4:1.2
[10315.092431] usbcore: registered new interface driver usb-storage
[10315.093278] usbcore: registered new interface driver uas
[10316.103546] scsi 1:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
[10316.104206] sd 1:0:0:0: Attached scsi generic sg1 type 0
[10316.108948] sd 1:0:0:0: [sdb] Media removed, stopped polling
[10316.109312] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[10320.244024] usblp1: removed
[10320.251504] usblp 3-4:1.1: usblp1: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x04B8 pid 0x082B
Engeguem "Document Scanner", es posa "scanning for scanners ...", troba el scanner i es posa "Ready to Scan".
Pitgem "Scan" - quan acabi, "Save document to a file" - produeix un PDF (o JPEG o PNG)
Eines per Minie
hard disk health check
Using S.M.A.R.T., install "smartmontools" :
sebas@minie:~$ sudo smartctl -H /dev/sdb
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.8.0-59-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Force the SMART Check using a specific "type" flag (-d sat) :
$ sudo smartctl -d sat -a /dev/sdb
Verify speed :
$ sudo hdparm -t /dev/sdb
/dev/sdb:
Timing buffered disk reads: 110 MB in 3.02 seconds = 36.41 MB/sec
- Healthy USB 3.0: Should be 80–120 MB/s
- Healthy USB 2.0: Should be 25–35 MB/s
- Failing Drive: Will start fast, then drop to 0 or 1 MB/s or throw an "I/O Error"
imap-tools
2026.04.10 "WD_BLACK" 5 TB USB "NxN"
linux mint - i connect a USB disk and get "ntfs3: sdb1: volume is dirty and "force" flag is not set!" - what to do
Solucio :
sebas@minie:~$ sudo umount /dev/sdb1
[sudo] password for sebas:
umount: /dev/sdb1: not mounted.
sebas@minie:~$ sudo ntfsfix /dev/sdb1
Mounting volume... $MFTMirr does not match $MFT (record 3).
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 3...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
sebas@minie:~$ sudo ntfsfix -d /dev/sdb1
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
sebas@minie:~$ sudo ntfsfix -n /dev/sdb1 # "no action" = test flag status
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
Unplug the USB and plug it back in.
imap-tools
To access email servers where we do backup, we use python ant imap-tools
Linux packages
per llegir correu : mail
sebas@minie:~$ sudo apt install mailutils
Postfix Configuration : Internet Site, mail uses SMTP
System mail name : minie
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.
Postfix (main.cf) is now set up with a default configuration.
If you need to make changes, edit /etc/postfix/main.cf (and others) as needed.
To view Postfix configuration values, see postconf(1).
After modifying main.cf, be sure to run 'systemctl reload postfix'.
sebas@minie:~$ mail
Cannot open mailbox /var/mail/sebas: No such file or directory
No mail for sebas
El error de sempre :
sebas@minie:~$ mail
Cannot open mailbox /var/mail/sebas: No such file or directory
No mail for sebas
Enviem un missatge i tot arreglat :
sebas@minie:~$ mail -s "Test Subject" sebas@localhost < /dev/null
mail: Null message body; hope that's ok
backup per email
[9_llista_fitxers.txt] -> 8_fer_backup.sh -> [/home/sebas/logs/fer_backup.log]
llista de fitxers
sebas@minie:~/eines$ cat 9_llista_fitxers.txt
/etc/apt/sources.list
/etc/Muttrc
/etc/hosts
/etc/motd
/home/sebas/.bash_aliases
/home/sebas/.config/sublime-text/Packages/User/Preferences.sublime-settings
/home/sebas/dades/python/telegram/1_client.py
/home/sebas/dades/python/telegram/2_msg_a_tg.sh
/home/sebas/dades/python/telegram/4_retry_msg_a_tg.sh
/home/sebas/eines/8_fer_backup.sh
/home/sebas/eines/9_llista_fitxers.txt
/usr/local/bin/motd
backup a USB
sebas@minie:~/eines$ ./0_salva_2_usb.sh
(1.a.4) Mount the USB labeled GAS64GB and click Enter
backup per SCP
sebas@minie:~/backups/r0/python$ scp -v -r pi@r0:/home/pi/python .
By not including the trailing '/' at the end of foo,
you will copy the directory itself (including contents), rather than only the contents of the directory.
missatge a TG
/home/sebas/dades/python/telegram$ ./2_msg_a_tg.sh texte /home/sebas/logs/msg_a_tg.log
|
.---> /home/sebas/dades/python/telegram/1_client.py /home/sebas/logs/send_telegram.log
|
.---> /home/sebas/dades/python/telegram/4_retry_msg_a_tg.sh /home/sebas/logs/msg_a_tg.log
netejar els logs
sebas@minie:~/eines$ cat 7_netejar_logs.sh
#!/bin/bash
# modificacions :
# 20211106 - escriure errors de MKDIR al log i no al MAIL
# 20211228 - mostrar quin fitxer de log inicialitzem
# 20231212 - adaptar per Minie
myT=$(date +%R) # short time
myD=$(date +%D) # short date
myTS=$myD" "$myT
log_FN="/home/sebas/logs/netejar.log"
echo -e "\n>>> ($myTS) - ($0) === clean logs" >> $log_FN
function accedir {
szFN=$1
echo ">>> Lets init "$szFN >> $log_FN
szOld="./oldies/$szFN.old" # oldies are saved into sub-directory
rm -f $szOld # remove previous old file
mv $szFN $szOld # save actual log with ".old" sufix
szInit="*** $myTS *** $szFN ***" # set creation timestamp in log file
echo "$szInit" > $szFN # create an empty log file (just 1 line, name and date)
return 0
}
cd /home/sebas/logs
mkdir oldies >> $log_FN 2>&1 # create subdir if it does not exist
accedir fer_backup.log
accedir msg_a_tg.log
accedir send_telegram.log
exit 0
crontab de Minie
sebas@minie:~$ crontab -l
#
##########################################################
# minuto (0-59), #
# | hora (0-23), #
# | | dia del mes (1-31), #
# | | | mes (1-12), #
# | | | | dia de la semana (1-7 donde 1=Lunes) #
# | | | | | comandos #
##########################################################
# m h dom mon dow command
06 02 * * * /home/sebas/dades/python/telegram/msg_a_tg.sh kron
57 11 * * * cd /home/sebas/eines && /home/sebas/eines/8_fer_backup.sh
29 10 2 * * /home/sebas/eines/7_netejar_logs.sh
tasca en engegar Minie
Similar a mars:/home/nicolau/.config/systemd/user/mars_start.service
Does MINT v 21.2 use
systemd initialization ?
sebas@minie:~$ ps --no-headers -o comm 1
systemd
sebas@minie:~/dades/_local_tinet_files$ ps 1
PID TTY STAT TIME COMMAND
1 ? Ss 0:01 /sbin/init splash
sebas@minie:~/dades/_local_tinet_files$ ls /sbin/init
0 lrwxrwxrwx 1 root root 20 Sep 19 18:57 /sbin/init -> /lib/systemd/systemd
Looks like yes
1_minie_start_log.service
sebas@minie:~/.config/systemd/user$ cat 1_minie_start_log.service
[Unit]
Description=Servei de engegada del Minie, nomes fem q una trassa
[Service]
Type=simple
ExecStart=/home/sebas/eines/minie_start_log.sh
[Install]
WantedBy=default.target
minie_start_log.sh
sebas@minie:~/eines$ cat minie_start_log.sh
#!/bin/bash
# shell executed at Linux start, via user service /home/sebas/.config/systemd/user/1_minie_start_log.service
myLog="/home/sebas/logs/engegades.log"
date_name=`date +"Y%y/M%m/D%d"`
time_name=`date +"h%H:m%M"`
szTs="$date_name - $time_name"
szId="*** ($szTs) *** ($0) *** ($HOSTNAME) boot *** SAG ***"
# timestamp system start at own log file
echo "$szId" >> $myLog
# trace in /var/log/syslog
logger -i -p user.info $szId
exit 0
service admin
systemctl --user cat 1_minie_start_log.service #
systemctl --user is-enabled 1_minie_start_log.service #
sebas@minie:~$ systemctl --user enable 1_minie_start_log.service
Created symlink /home/sebas/.config/systemd/user/multi-user.target.wants/1_minie_start_log.service → /home/sebas/.config/systemd/user/1_minie_start_log.service.
Unit /home/sebas/.config/systemd/user/minie_start.service is added as a dependency to a non-existent unit multi-user.target.
sebas@minie:~$ systemctl --user status 1_minie_start_log.service
○ minie_start.service - Servei de engegada del Minie
Loaded: loaded (/home/sebas/.config/systemd/user/1_minie_start_log.service; enabled; vendor preset: enabled)
Active: inactive (dead)
sebas@minie:~$ loginctl enable-linger sebas # run user service at system boot
seguretat del servei
Comanda interessant :
sebas@minie:~/.config/systemd/user$ systemd-analyze --user security minie_start.service
NAME DESCRIPTION >
✗ PrivateNetwork= Service has access to the host's network >
✗ User=/DynamicUser= Service runs as root user >
2_minie_start_tg.service
sebas@minie:~/.config/systemd/user$ cat 2_minie_start_tg.service
[Unit]
Description=Servei de engegada del Minie, esperem xarxa i enviem a Telegram - v(1.b)
; v 1.b - type =forking
Wants=network-online.target
After=network-online.target
[Service]
Type=forking
; simple - a long-running process that does not background itself and stays attached to the shell
; systemd considers the service to be started up immediately. The process must not fork.
; forking - a typical daemon that forks itself detaching it from the process that ran it, effectively backgrounding itself
; systemd considers the service started up once the process forks and the parent has exited.
; oneshot - a short-lived process that is expected to exit
; useful for scripts that do a single job and then exit.
Restart=no
WorkingDirectory=/home/sebas/eines
ExecStart=/home/sebas/eines/minie_start_tg.sh
[Install]
WantedBy=multi-user.target
minie_start_tg.sh
sebas@minie:~/eines$ cat minie_start_tg.sh
!/bin/bash
# shell executed at Linux start, via user service /home/sebas/.config/systemd/user/2_minie_start_tg.service
myLog="/home/sebas/logs/minie_start_tg.log"
date_name=`date +"Y%y/M%m/D%d"`
time_name=`date +"h%H:m%M"`
szTs="$date_name - $time_name"
szId="*** ($szTs) *** ($0) *** ($HOSTNAME) boot *** SAG ***"
# send msg to TG bot
/home/sebas/dades/python/telegram/2_msg_a_tg.sh boot
rc=$?
# echo "msg a TG rc ($rc)." >> $myLog
# log a /home/nicolau/logs/msg_a_tg.log
exit 0
2_msg_a_tg.sh
sebas@minie:~/dades/python/telegram$ cat 2_msg_a_tg.sh
if [ $rc0 -eq 1 ]
then
szTG="($szTs) $HOSTNAME ($szWho) $eIP $szNet"
echo -e "+++ Send msg to TG bot" >> $myLog
echo "$szTG" >> $myLog
/home/sebas/dades/python/telegram/1_client.py "$szTG"
rc3=$?
echo ">>> sent msg to TG bot, rc ($rc3)" >> $myLog
else
echo "--- dont send to TG as we have no eIP ---" >> $myLog
nohup /home/sebas/dades/python/telegram/4_retry_msg_a_tg.sh 0 &
fi
exit 0
desktop launchers
Select an icon from directory "/usr/share/icons/hicolor/scalable/apps"
ncdu
NCurses Disk Usage
display film resolution
$ ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 input.mp4
Dubtes
/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
Problemes
Ask Gemini or chatGPT :
i have a Limux Mint and i did a "hardware summary" and I get some devices in red - what does it mean ?
dmesg - tainted kernel
20250211 veig :
[ 7.929471] spl: loading out-of-tree module taints kernel.
[ 7.975028] zfs: module license 'CDDL' taints kernel.
[ 7.975032] Disabling lock debugging due to kernel taint
[ 7.975043] zfs: module license taints kernel.
slog - wifi disabled by rfkill
No engega el wifi (despres d un "flick") - slog te :
Feb 11 17:40:11 minie NetworkManager[787]: <info> [1739292011.7617] audit: op="radio-control" arg="wireless-enabled:on" pid=2191 uid=1000 result="success"
Feb 11 17:40:11 minie NetworkManager[787]: <info> [1739292011.7622] manager: rfkill: Wi-Fi now enabled by radio killswitch
Feb 11 17:40:11 minie NetworkManager[787]: <info> [1739292011.8334] manager: rfkill: Wi-Fi hardware radio set disabled
Feb 11 17:40:11 minie NetworkManager[787]: <info> [1739292011.8340] audit: op="radio-control" arg="wireless-enabled:off" pid=2191 uid=1000 result="success"
Feb 11 17:40:11 minie wpa_supplicant[819]: rfkill: WLAN soft blocked
Feb 11 17:40:11 minie NetworkManager[787]: <info> [1739292011.8344] manager: rfkill: Wi-Fi now disabled by radio killswitch
Feb 11 17:40:11 minie wpa_supplicant[819]: rfkill: WLAN soft blocked
Feb 11 17:40:11 minie NetworkManager[787]: <info> [1739292011.8534] device (wlp3s0): supplicant interface state: internal-starting -> disconnected
Tenim
sebas@minie:~$ rfkill
ID TYPE DEVICE SOFT HARD
0 bluetooth hci0 blocked unblocked
1 wlan phy1 blocked unblocked
2 wlan phy0 blocked unblocked
En detall :
sebas@minie:~$ rfkill list all
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: yes
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
Desbloquegem :
sebas@minie:~$ rfkill unblock all
sebas@minie:~$ rfkill list all
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
no engega (o peta) VLC
sebas@minie:/var/log$ tail -f syslog
Jan 21 11:37:19 minie systemd[945]: Started app-flatpak-org.videolan.VLC-11520.scope.
Probem de engegar des command line :
sebas@minie:~$ flatpak run -vv org.videolan.VLC
Aturem a ma :
sebas@minie:~$ ps -ef | grep vlc
sebas 13288 1 0 11:41 ? 00:00:00 bwrap --args 39 /app/bin/vlc --started-from-file /home/sebas/flims/f1.mp4
sebas 13302 13288 0 11:41 ? 00:00:00 bwrap --args 39 /app/bin/vlc --started-from-file /home/sebas/flims/f1.mp4
sebas 13308 13302 0 11:41 ? 00:00:02 /app/bin/vlc.bin --started-from-file /home/sebas/flims/f1.mp4
sebas@minie:~$ kill -9 13288
sebas@minie:~$ kill -9 13302
Feb 20 16:59:25 minie systemd[1]: Started Process Core Dump (PID 14236/UID 0).
Feb 20 16:59:27 minie systemd-coredump[14237]: Process 14149 (vlc.bin) of user 1000 dumped core.#012#012
Found module /app/bin/vlc.bin with build-id: 8869d90af988231eee15dcea3b0e26d7962d35af#012
Found module /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_drv_video.so with build-id: fec0d6d02b44a236708a41c72fbeed0d8d796186#012
Found module /usr/lib/x86_64-linux-gnu/libwayland-server.so.0.22.0 with build-id: 0258891bdf42dac4cb5be7cc3279b6a08df58a35#012
Found module /usr/lib/x86_64-linux-gnu/GL/default/lib/libgbm.so.1.0.0 with build-id: e9c79f1f9edb11d3a53a36f97bc4ef89bfee03bd#012
Found module /usr/lib/x86_64-linux-gnu/librsvg-2.so.2.48.0 with build-id: b1597752b44a4da4138241bd92f326dd4b4c99b4#012
Found module /app/lib/libavcodec.so.58.134.100 with build-id: 7ec0f92c360a52bf14d3753c9f847b77204758dc#012
Found module /usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 with build-id: ee5ed4278f0f6dcc981d483f198900c41d8d7839#012
Found module /usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0 with build-id: b8d758086830f44030a2f6133f33c71d35fc4d86#012
Found module /usr/lib/x86_64-linux-gnu/GL/default/lib/libLLVM-17.so with build-id: ab92ddd157f534d00a899ed42be12cb6521d1a35#012
Found module /app/lib/vlc/plugins/codec/libvaapi_plugin.so with build-id: b413f2ac59d0de9bd62dc263c3dcbc8154924632#012
Found module /app/lib/vlc/plugins/vdpau/libvdpau_avcodec_plugin.so with build-id: 1b4cc79886537c0100f6bded1602899c05858d8e#012
Found module /app/lib/vlc/plugins/video_output/libglconv_vaapi_x11_plugin.so with build-id: edd32ba4b4fc5467badb6e52e1907ea1096c00d7#012
Found module /app/lib/libplacebo.so.2 with build-id: 24f10ca50389600c7e136570aa1c0caea2397a8b#012
Found module /usr/lib/x86_64-linux-gnu/libsamplerate.so.0.2.2 with build-id: 42d4433052d3d30404566f8bf1f060dbbfdf17b0#012
Found module /app/lib/vlc/plugins/video_output/libglconv_vdpau_plugin.so with build-id: bdbab5e2bd89e7249e572b3047c21ae127efed0c#012
Found module /app/lib/vlc/plugins/video_output/libegl_x11_plugin.so with build-id: 54524bc27cee87d115bb70d3f28f70541eb563a9#012
Found module /app/lib/vlc/plugins/video_output/libgl_plugin.so with build-id: 24fd3ed4a56775bb95912b53111eca1e6058898d#012
Found module /app/lib/vlc/plugins/misc/libdbus_screensaver_plugin.so with build-id: 56fae8fc3f72ca3150c58f06a4dd90538e4717be#012
Found module /app/lib/vlc/plugins/audio_filter/libsamplerate_plugin.so with build-id: 21924dad9677b846f2ceb1cb514ae28b014acf2f#012
Found module /app/lib/libdav1d.so.7.0.0 with build-id: fececada16395d5e164251c20fdaf0e2113811cf#012
Found module /app/lib/libx265.so.199 with build-id: c948ec4ee6391e13b04eec8d15a8aed74b849d27#012
Found module /app/lib/vlc/plugins/audio_filter/libscaletempo_plugin.so with build-id: 76e93f095101349911c0e226aaa66144993c7188#012
Found module /app/lib/libswscale.so.5.9.100 with build-id: b79b46565096e69ddcf2c2c799582bc9a47e0118#012
Found module /app/lib/libx264.so.164 with build-id: 5bba1cace7e047c1210640ab0040d8d791765839#012
Found module /app/lib/vlc/plugins/audio_mixer/libfloat_mixer_plugin.so with build-id: eb1033a10962f9845c0bd39611c45a5290fb0a6b#012
Found module /app/lib/vlc/plugins/video_chroma/libyuvp_plugin.so with build-id: 2f716228df2e5752af29b033784f4e4d8b18d588#012
Found module /app/lib/vlc/libvlc_vdpau.so.0.0.0 with build-id: 53ca09d667c5ec8d342c1a4bc9a71d533e770a0f#012
Found module /app/lib/vlc/plugins/vaapi/libvaapi_filters_plugin.so with build-id: 93b28cb3e0ef0119cc1c3393f923f3750cb88af1#012
Found module /usr/lib/x86_64-linux-gnu/libvpx.so.8.0.1 with build-id: dfb1e3fff7ce9a115c7e13d3aa58c32a1b33f538#012
Found module /app/lib/vlc/plugins/vdpau/libvdpau_chroma_plugin.so with build-id: 9cb6b4798ea59c945158fd97236779afc9212cca#012
Found module /app/lib/vlc/plugins/video_chroma/libi422_i420_plugin.so with build-id: 76786b55d1e3e239e26ca9b95f6c251417a555e9#012
Found module /app/lib/vlc/plugins/video_chroma/libgrey_yuv_plugin.so with build-id: d1fb53b2a77b0b96f5acaac2567ce813d951172d#012
Found module /app/lib/vlc/plugins/video_chroma/libi420_rgb_plugin.so with build-id: 98904d9908c74f86680ddab5a4783f78f293f439#012
Found module /app/lib/vlc/plugins/video_chroma/libyuy2_i422_plugin.so with build-id: af72c856a3ff9dfd7ac9099fbe14e3232cabacfd#012
Found module /app/lib/vlc/plugins/video_chroma/libi420_yuy2_plugin.so with build-id: 6da2e5ed1b585a192d6425347ef61c30ad481188#012
Found module /app/lib/vlc/plugins/video_chroma/libyuy2_i420_plugin.so with build-id: ed10157f7654fdd57e802568d35553b4cf47b2b2#012
Found module /app/lib/vlc/plugins/video_chroma/libi422_yuy2_plugin.so with build-id: d56c250497af6f88b198fdd5c4f646bff61f400a#012
Found module /app/lib/vlc/plugins/video_chroma/libi422_yuy2_mmx_plugin.so with build-id: 72e6aba29dfe832ad58dbf6faf6768b1b5043f9c#012
Found module /app/lib/vlc/plugins/video_chroma/libi420_rgb_mmx_plugin.so with build-id: 1bde553421b116f0734265d5dd2b0200b92d6e8d#012
Found module /app/lib/vlc/plugins/video_chroma/libi420_rgb_sse2_plugin.so with build-id: e7545c332c56b5914af141e344c40b2159a9fd29#012
Found module /app/lib/vlc/plugins/video_chroma/libi420_nv12_plugin.so with build-id: ef965e214232265f72630cfd55b4890c83d6fe48#012
Found module /usr/lib/x86_64-linux-gnu/libmpg123.so.0.47.0 with build-id: 8c82c69419471011fb8a71a4a9334d5894ef2bd9#012
Found module /app/lib/libavutil.so.56.70.100 with build-id: cda4ae520dccf3d83199d42847121de5a82f7cfe#012
Found module /app/lib/vlc/plugins/video_chroma/libi422_yuy2_sse2_plugin.so with build-id: 89c5a1f1275b9fccc6f975f6c0bb5be6bf090e99#012
Found module /app/lib/vlc/plugins/video_chroma/libswscale_plugin.so with build-id: 574a72b85c944945f3cba2d9d263893212c67684#012
Found module /app/lib/vlc/plugins/video_chroma/libi420_yuy2_mmx_plugin.so with build-id: 77549dbb011d87031ef9db4251727e5271e3d437#012
Found module /app/lib/vlc/plugins/video_chroma/libi420_yuy2_sse2_plugin.so with build-id: 5fd8d2177f0c4efff9a7e666731eb99c7034b4f0#012
Found module /app/lib/vlc/plugins/text_renderer/libfreetype_plugin.so with build-id: ece6a4b5f56349aaa2c25a004f101e7bc42edf7f#012
Found module /app/lib/vlc/plugins/codec/libvorbis_plugin.so with build-id: 3cc494d3cafb6034f651575d18d0ff14e6e00d7b#012
Found module /app/lib/vlc/plugins/codec/libmpg123_plugin.so with build-id: 72c373eccf6b24ebe01d88000d2a3f40ac2240f6#012
Found module /app/lib/vlc/plugins/codec/libaraw_plugin.so with build-id: d147e79234375b477193cb1d2466b3299ae489b8#012
Found module /app/lib/vlc/plugins/codec/libflac_plugin.so with build-id: f264fcfcbf1423e1d23f9412257f85f44001af0a#012
Found module /usr/lib/x86_64-linux-gnu/libvorbisfile.so.3.3.8 with build-id: 3577fcf6afaf5d26beb84fd0c33801f0ea34b9b6#012
Found module /app/lib/vlc/plugins/codec/libg711_plugin.so with build-id: f965fd3797db8e5ad5a0c352dfd14d8ca708448e#012
Found module /app/lib/vlc/plugins/codec/libaes3_plugin.so with build-id: a94c8d5d7f259d332551156494ef5d63357c440f#012
Found module /app/lib/libfluidlite.so.1.2.2 with build-id: 3a827f255bc7dca113b7ff6d84a8c21997b54c00#012
Found module /usr/lib/x86_64-linux-gnu/libspeex.so.1.5.2 with build-id: b061a26bb50fd08d4f5600a6ac3591a9ca8ba42b#012
Found module /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2 with build-id: 314fcf955d1bde3c9c41d129a76dbfa5873f73b5#012
Found module /app/lib/vlc/plugins/codec/libfluidsynth_plugin.so with build-id: 9b94a6de5162294875ec9f0f396ff73cd654d64c#012
Found module /app/lib/vlc/plugins/codec/libopus_plugin.so with build-id: 0feb0cb8befa7f4e1c53adeadeae74be6b11f623#012
Found module /app/lib/vlc/plugins/codec/libspeex_plugin.so with build-id: 7e56736f721c5d2a541818dfe85106ea4626fcdd#012
Found module /usr/lib/x86_64-linux-gnu/libtheoradec.so.1.1.4 with build-id: e428f6b7a90e44e700f57187341bd9ea11ac0cb6#012
Found module /app/lib/vlc/plugins/codec/liblpcm_plugin.so with build-id: d51ac7df0cff16cc264c9e7e7de8abb35fabc4e4#012
Found module /app/lib/vlc/plugins/codec/libspdif_plugin.so with build-id: e32b8fcd703d5db389e1741d697e0e344fb3b4bc#012
Found module /usr/lib/x86_64-linux-gnu/libmp3lame.so.0.0.0 with build-id: 83c2390ee3721786c79ace982cfb63e159bbcbe5#012
Found module /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so with build-id: 13541c7e13718800d76848a1e
Feb 20 16:59:27 minie systemd[948]: app-flatpak-org.videolan.VLC-14139.scope: Consumed 4.032s CPU time.
Feb 20 16:59:27 minie systemd[1]: systemd-coredump@0-14236-0.service: Deactivated successfully.
Feb 20 16:59:27 minie systemd[1]: systemd-coredump@0-14236-0.service: Consumed 1.463s CPU time.
Comanda interessant :
sebas@minie:~$ apt policy vlc # commandline interface for the package management system
vlc:
Installed: 3.0.16-1build7
Candidate: 3.0.16-1build7
Version table:
*** 3.0.16-1build7 500
500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
100 /var/lib/dpkg/status
Solucio :
- busquem si hi ha un VLC "penjat"
sebas@minie:~$ ps -ef | grep v[l]c
sebas 2849 957 0 11:06 ? 00:00:08 /usr/bin/vlc --started-from-file /home/sebas/pelis/fly.mp4
sebas 11915 9188 0 12:22 pts/1 00:00:00 grep --color=auto vlc
- el matem
sebas@minie:~$ kill -9 2849
sebas@minie:~$ ps -ef | grep vlc
sebas 11941 9188 0 12:22 pts/1 00:00:00 grep --color=auto vlc
Mes radical : killall vlc
no sound on headphones
Comandes :
- $ pulseaudio -h
- $ aplay -h
- $ alsamixer
system volume does not affect VLC volume
left-click on "Volume" -> "Sound Settings" -> Sound "Output" -> select "Digital Output (S/PDIF) CM102-A+/102S+ Audio Controller"
Qui fa servir "/home/sebas/.config/pulse" ? Esborrar i fer "pulseaudio -k"
sebas@minie:~/.config/pulse$ ls
24 -rw------- 1 sebas sebas 24576 Dec 24 12:14 95cfbeca9d1747b0a63d6a8026914614-card-database.tdb
4 -rw------- 1 sebas sebas 63 Dec 24 12:15 95cfbeca9d1747b0a63d6a8026914614-default-sink
4 -rw------- 1 sebas sebas 42 Dec 24 12:15 95cfbeca9d1747b0a63d6a8026914614-default-source
12 -rw------- 1 sebas sebas 12288 Dec 23 14:35 95cfbeca9d1747b0a63d6a8026914614-device-volumes.tdb
16 -rw------- 1 sebas sebas 16384 Dec 23 19:16 95cfbeca9d1747b0a63d6a8026914614-stream-volumes.tdb
Que es "alsamixer" ?
sebas@minie:~$ alsamixer
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq AlsaMixer v1.2.6 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Card: HD-Audio Generic F1: Help x
x Chip: ATI R6xx HDMI F2: System information x
x View: F3:[Playback] F4: Capture F5: All F6: Select sound card x
x Item: S/PDIF Esc: Exit x
From "alsamixer", the cards and chips :
Card Chip
----- -----
HD-Audio Generic ATI R6xx HDMI
Audio Advantage MicroII USB Mixer
HD-Audio Generic Realtek ALC269VB
Detalls de les targes :
sebas@minie:~$ cat /proc/asound/cards
0 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfcbc8000 irq 72
1 [MicroII ]: USB-Audio - Audio Advantage MicroII
C-Media INC. Audio Advantage MicroII at usb-0000:05:00.3-1, full speed
2 [Generic_1 ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfcbc0000 irq 73
.
sebas@minie:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: MicroII [Audio Advantage MicroII], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 1: ALC269VB Digital [ALC269VB Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
Large output :
sebas@minie:~$ head -1 /proc/asound/card0/codec#0
Codec: ATI R6xx HDMI
Modules :
sebas@minie:~$ cat /proc/asound/modules
0 snd_hda_intel
1 snd_usb_audio
2 snd_hda_intel
Comanda complexa :
sebas@minie:~$ pacmd list-sinks
3 sink(s) available.
index: 0
name: <alsa_output.pci-0000_05_00.1.hdmi-stereo-extra1>
driver: <module-alsa-card.c>
* index: 1
name: <alsa_output.usb-C-Media_INC._USB_Sound_Device-00.iec958-stereo>
driver: <module-alsa-card.c>
index: 2
name: <alsa_output.pci-0000_05_00.6.iec958-stereo>
driver: <module-alsa-card.c>
slow file copy to USB
When I copy a large file to USB, it freezes at 96 % or 98 % :
sebas@minie:~$ grep Dirty /proc/meminfo
Dirty: 456500 kB
sebas@minie:~$ grep Dirty /proc/meminfo
Dirty: 245584 kB
"shutdown" de fet fa "restart"
sebas@minie:~$ shutdown -h now
Operation inhibited by "sebas" (PID 26929 "cinnamon-sessio", user sebas), reason is "user session inhibited".
Operation inhibited by "Disk Manager" (PID 832 "udisksd", user root), reason is "Unmounting Filesystem".
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'.
20240304 :
sebas@minie:~$ shutdown -h now
Operation inhibited by "Disk Manager" (PID 836 "udisksd", user root), reason is "Unmounting Filesystem".
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'.
no veu / no es conecta a les xarxes de 5 GHz
sebas@minie:~$ iwconfig
eno1 no wireless extensions.
enp2s0 no wireless extensions.
wlp3s0 IEEE 802.11 ESSID:"Maset"
Mode:Managed Frequency:2.462 GHz Access Point: F6:8B:92:F9:DC:3E
Bit Rate=229.4 Mb/s Tx-Power=3 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=51/70 Signal level=-59 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
sebas@minie:~$ sudo iw wlp3s0 scan | grep SSID
SSID: Maset
SSID: Livebox6-AAC4
sebas@minie:~$ nmcli device wifi list
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
* F6:8B:92:F9:DC:3E Maset Infra 11 260 Mbit/s 61 ▂▄▆_ WPA2
60:8D:26:EA:AA:C3 Livebox6-AAC4 Infra 6 195 Mbit/s 60 ▂▄▆_ WPA2
sebas@minie:~$ sudo iwlist wlp3s0 freq
wlp3s0 32 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 36 : 5.18 GHz
Channel 40 : 5.2 GHz
Channel 44 : 5.22 GHz
Channel 48 : 5.24 GHz
Channel 52 : 5.26 GHz
Channel 56 : 5.28 GHz
Channel 60 : 5.3 GHz
Channel 64 : 5.32 GHz
Channel 100 : 5.5 GHz
Channel 104 : 5.52 GHz
Channel 108 : 5.54 GHz
Channel 112 : 5.56 GHz
Channel 116 : 5.58 GHz
Channel 120 : 5.6 GHz
Channel 124 : 5.62 GHz
Channel 128 : 5.64 GHz
Channel 132 : 5.66 GHz
Channel 136 : 5.68 GHz
Channel 140 : 5.7 GHz
Current Frequency:2.462 GHz (Channel 11)
sebas@minie:~$ sudo wpa_cli scan_results wlp3s0
Selected interface 'wlp3s0'
bssid / frequency / signal level / flags / ssid
f6:8b:92:f9:dc:3e 2462 -56 [WPA2-PSK-CCMP][WPS][ESS] Maset
60:8d:26:ea:aa:c3 2437 -62 [WPA2-PSK-CCMP][WPS][ESS] Livebox6-AAC4
78:8a:20:c8:15:57 5180 -85 [ESS] guifi.net-TDLCmpnrAP3
inxi cant be unistalled
sebas@minie:~$ sudo inxi -Fxxxrz --html
Error 22: Unsupported option: --html
Check -h for correct parameters.
Cant reinstall it
sebas@minie:~$ sudo apt remove inxi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mintsources : Depends: mint-common (>= 2) but it is not going to be installed
Depends: gir1.2-xapp-1.0 but it is not going to be installed
Depends: inxi but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Cinnamon just crashed
How to make Cinnamon beautiful
<Ctrl><Alt><Esc> reloads Cinnamon without closing any open application !
<Ctrl><Alt><Backspace> kills the X server and returns you to the graphical login screen
All loaded applications will be terminated without prior confirmation.
So use it only if your GUI has got in an unresponsive state.
You are currently running in fallback mode.
if you suspect the source of the crash is a local extension, applet or desklet, you can disable downloaded add-ons using the checkbox below.
Do you want to restart Cinnamon ?
▢ Disable downloaded applets, desklets and extensions
My version is :
sebas@minie:~$ cinnamon --version
Cinnamon 5.8.4
Sugereixen mirar eixe log :
sebas@minie:~$ grep trap /var/log/kern.log
sebas@minie:~$
La instalacio es
sebas@minie:~$ dpkg --list | grep cinnamon
ii cinnamon 5.8.4+victoria amd64 Modern Linux desktop
ii cinnamon-common 5.8.4+victoria all Cinnamon desktop (Common data files)
ii cinnamon-control-center 5.8.2+victoria amd64 utilities to configure the Cinnamon desktop
ii cinnamon-control-center-data 5.8.2+victoria all configuration applets for Cinnamon - data files
ii cinnamon-control-center-dbg 5.8.2+victoria amd64 utilities to configure the Cinnamon desktop - debug symbols
ii cinnamon-dbg 5.8.4+victoria amd64 Debugging symbols for the Cinnamon desktop
ii cinnamon-desktop-data 5.8.0+victoria all Common files for Cinnamon desktop apps
ii cinnamon-l10n 5.8.2 all Translation files for the Cinnamon desktop
ii cinnamon-screensaver 5.8.1+victoria amd64 Cinnamon screen saver and locker
ii cinnamon-session 5.8.1+victoria amd64 Cinnamon Session Manager - Minimal runtime
ii cinnamon-session-common 5.8.1+victoria all Cinnamon Session Manager - common files
ii cinnamon-settings-daemon 5.8.1+victoria amd64 daemon handling the Cinnamon session settings
ii gir1.2-cinnamondesktop-3.0 5.8.0+victoria amd64 Introspection data for CinnamonDesktop
ii libcinnamon-control-center1:amd64 5.8.2+victoria amd64 utilities to configure the Cinnamon desktop
ii libcinnamon-desktop-dbg:amd64 5.8.0+victoria amd64 Cinnamon shared utility library - debugging symbols
ii libcinnamon-desktop4:amd64 5.8.0+victoria amd64 Cinnamon shared utility library.
ii libcinnamon-menu-3-0 5.8.0+victoria amd64 Cinnamon implementation of the freedesktop menu specification
ii libcinnamon-menu-3-0-dbg 5.8.0+victoria amd64 Cinnamon implementation of the freedesktop menu specification
ii libcscreensaver0:amd64 5.8.1+victoria amd64 library and introspection data used by cinnamon-screensaver
ii mint-info-cinnamon 2023.05.31 all Necessary information about the Linux Mint release and edition.
ii mint-meta-cinnamon 2023.08.28+mint21.2 all Set of packages installed by default in the Cinnamon edition of Linux Mint
Consell : instalar "systemd-coredump" -
cinnamon issues
Mes configuracio :
sebas@minie:~$ coredumpctl list cinnamon
TIME PID UID GID SIG COREFILE EXE SIZE
Wed 2023-12-13 23:37:06 CET 1620 1000 1000 SIGSEGV missing /usr/bin/cinnamon n/a
Wed 2023-12-27 13:42:11 CET 2524 1000 1000 SIGABRT missing /usr/bin/cinnamon n/a
Mon 2024-01-01 19:14:07 CET 2289 1000 1000 SIGABRT missing /usr/bin/cinnamon n/a
Thu 2024-01-04 11:22:30 CET 2372 1000 1000 SIGABRT missing /usr/bin/cinnamon n/a
Sun 2024-01-21 10:54:49 CET 2269 1000 1000 SIGABRT missing /usr/bin/cinnamon n/a
Fri 2024-01-26 13:29:15 CET 1672 1000 1000 SIGABRT present /usr/bin/cinnamon 13.8M
I mes :
sebas@minie:~$ dconf dump /org/cinnamon/
[/]
desklet-snap-interval=25
enabled-applets=['panel1:left:0:menu@cinnamon.org:0', 'panel1:left:1:separator@cinnamon.org:1',
'panel1:left:2:grouped-window-list@cinnamon.org:2', 'panel1:right:0:systray@cinnamon.org:3',
'panel1:right:1:xapp-status@cinnamon.org:4', 'panel1:right:2:notifications@cinnamon.org:5',
'panel1:right:3:printers@cinnamon.org:6', 'panel1:right:4:removable-drives@cinnamon.org:7',
'panel1:right:5:keyboard@cinnamon.org:8', 'panel1:right:6:favorites@cinnamon.org:9',
'panel1:right:7:network@cinnamon.org:10', 'panel1:right:8:sound@cinnamon.org:11',
'panel1:right:9:power@cinnamon.org:12', 'panel1:right:10:calendar@cinnamon.org:13', 'panel1:right:11:cornerbar@cinnamon.org:14']
enabled-desklets=@as []
favorite-apps=['org.gnome.Terminal.desktop', 'mintinstall.desktop', 'cinnamon-settings.desktop', 'nemo.desktop']
next-applet-id=15
panel-edit-mode=false
panel-zone-symbolic-icon-sizes='[{"panelId": 1, "left": 28, "center": 36, "right": 16}]'
panels-height=['1:60']
[desktop/interface]
cursor-theme='Bibata-Modern-Classic'
gtk-theme='Mint-Y-Dark-Aqua'
icon-theme='Mint-Y-Sand'
[desktop/peripherals/keyboard]
numlock-state=false
[desktop/privacy]
remember-recent-files=false
[desktop/sound]
event-sounds=false
[settings-daemon/peripherals/keyboard]
numlock-state='off'
[theme]
name='Mint-Y-Dark-Aqua'
⭐ Fitxer de log interessant : .xsession-errors ⭐
sebas@minie:~$ sebas@minie:~$ cat ~/.xsession-errors | less
cinnamon-session[1920]: WARNING: t+2925,35399s: Detected that screensaver has appeared on the bus
cinnamon-session[1920]: WARNING: t+3032,28205s: Detected that screensaver has left the bus
(cinnamon:1679): Clutter-WARNING **: 11:49:15.259: Attempting to remove actor of type 'StIcon' from group of class 'ClutterBox',
but the container is not the actor's parent.
**
GLib:ERROR:../../../glib/gmain.c:3448:g_main_dispatch: assertion failed: (source->context == context)
Unable to open desktop file /usr/share/applications/mate-terminal.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/caja-browser.desktop for panel launcher: No such file or directory
Gjs-Message: 14:57:23.116: Profiler is disabled. Not setting up signals.
Gjs-Message: 14:57:23.215: JS LOG: About to start Cinnamon
En una altra ocasio trobo :
La configuracio de cinnamon :
sebas@minie:~$ cinnamon
cinnamon cinnamon-install-spice cinnamon-session
cinnamon2d cinnamon-json-makepot cinnamon-session-cinnamon
cinnamon-calendar-server cinnamon-killer-daemon cinnamon-session-cinnamon2d
cinnamon-close-dialog cinnamon-launcher cinnamon-session-quit
cinnamon-control-center cinnamon-looking-glass cinnamon-settings
cinnamon-dbus-command cinnamon-menu-editor cinnamon-settings-users
cinnamon-desktop-editor cinnamon-preview-gtk-theme cinnamon-slideshow
cinnamon-display-changes-dialog cinnamon-remove-application cinnamon-spice-updater
cinnamon-driver-manager cinnamon-screensaver cinnamon-subprocess-wrapper
cinnamon-file-dialog cinnamon-screensaver-command cinnamon-unlock-desktop
cinnamon-hover-click cinnamon-screensaver-lock-dialog cinnamon-xlet-makepot
... es fa amb
sebas@minie:~$ cinnamon-settings
Using PAM module (python3-pam)
Backup and restore of cinnamon settings :
sebas@minie:~$ dconf dump /org/cinnamon/ > backup_of_my_cinnamon_settings
dconf reset -f /org/cinnamon/
dconf load /org/cinnamon/ < backup_of_my_cinnamon_settings
System Reports
Start "System Reports" tool from Mint menu. Select "Crash Reports"
Crash reports:
Thu 2025-04-24 13:34:12 CEST 2493 /usr/bin/cinnamon
cinnamon has its own debugger - "looking glass"
It's name is Melange (cinnamon-looking-glass.py)
In short:
- 👉 Cinnamon = the whole desktop environment (menus, panels, settings, etc.).
- 👉 Muffin = the Cinnamon windows manager - part of Cinnamon that actually manages and draws the windows you interact with.
- 👉 Melange = the Cinnamon debugger.
To activate it :
- Press Alt + F2 → type "lg" → Enter.
La solapa "Log" contiene el ultimo arranque :
info t=2025-09-11T14:57:23Z Adding XAppStatusIcon: process-monitor (:1.82/org/x/StatusIcon/Icon_1)
info t=2025-09-11T14:57:23Z Hiding XAppStatusIcon (we have an applet): nm-applet (:1.45/org/x/StatusIcon/Icon)
info t=2025-09-11T14:57:23Z Loaded applet network@cinnamon.org in 45 ms
info t=2025-09-11T14:57:23Z Loaded applet menu@cinnamon.org in 64 ms
info t=2025-09-11T14:57:23Z AppletManager started in 414 ms
info t=2025-09-11T14:57:23Z Cinnamon took 529 ms to start
info t=2025-09-11T14:57:23Z GPU offload supported: false
*** Hauriem de mirar aquest fitxer despres de petar i abans de re-engegar ***
I llençar la comanda
sebas@minie:~$ gsettings list-recursively org.cinnamon.muffin
cinnamon has its own debugger - "looking glass"
sebas@minie:~$ inxi -Gxx
Graphics:
Device-1: AMD Cezanne driver: amdgpu v: kernel pcie: speed: 8 GT/s
lanes: 16 ports: active: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 05:00.0
chip-ID: 1002:1638 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5")
s-diag: 1165mm (45.9")
Monitor-1: HDMI-A-0 mapped: HDMI-A-1 model: BenQ EW3270U serial:
res: 3840x2160 hz: 60 dpi: 140 size: 698x393mm (27.5x15.5")
diag: 801mm (31.5") modes: max: 3840x2160 min: 720x400
OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.57 6.8.0-79-generic)
v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.3 direct render: Yes
no enviem a TG en engegar la maquina
Separem "log" de "tg" del "minie_start"
missatge a DMESG
[ 5.894495] spl: loading out-of-tree module taints kernel.
[ 5.899496] znvpair: module license 'CDDL' taints kernel.
[ 5.899498] Disabling lock debugging due to kernel taint
Dec 27 19:59:01 minie cinnamon-session[2115]: WARNING: t+25540,52578s: Detected that screensaver has left the bus
Dec 27 19:59:01 minie org.cinnamon.ScreenSaver[36116]: Error in sys.excepthook:
Dec 27 19:59:01 minie org.cinnamon.ScreenSaver[36116]: Original exception was:
missatge a SYSLOG
Dec 29 19:37:36 minie dbus-daemon[988]: [session uid=1000 pid=988] Activating service name='org.cinnamon.ScreenSaver' requested by ':1.271' (uid=1000 pid=37022 comm="/usr/bin/python3 /usr/bin/cinnamon-screensaver-com" label="unconfined")
Dec 29 19:37:36 minie org.cinnamon.ScreenSaver[37028]: Fractional scaling active: False
Dec 29 19:37:36 minie org.cinnamon.ScreenSaver[37028]: Trying to connect to logind...
Dec 29 19:37:36 minie dbus-daemon[988]: [session uid=1000 pid=988] Successfully activated service 'org.cinnamon.ScreenSaver'
Dec 29 19:37:36 minie org.cinnamon.ScreenSaver[37028]: Starting screensaver...
Dec 29 19:37:36 minie org.cinnamon.ScreenSaver[37028]: Cinnamon Screensaver support not found in current theme - adding some...
Dec 29 19:37:36 minie cinnamon-session[1907]: WARNING: t+10640,88650s: Detected that screensaver has appeared on the bus
Dec 29 19:37:36 minie org.cinnamon.ScreenSaver[37028]: Successfully using logind
Dec 29 19:44:55 minie cinnamon-screensaver-pam-helper: pam_ecryptfs: seteuid error
Dec 29 19:45:25 minie cinnamon-session[1907]: WARNING: t+11109,46181s: Detected that screensaver has left the bus
Dec 29 19:45:25 minie org.cinnamon.ScreenSaver[37028]: Error in sys.excepthook:
Dec 29 19:45:25 minie org.cinnamon.ScreenSaver[37028]: Original exception was:
wifi va lent
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt autoremove
sudo apt-get update
A provar : disable Power Management for the Wifi
Celluloid crashes
sebas@minie:~$ cat /var/log/syslog
Dec 14 11:34:11 minie dbus-daemon[1222]: [session uid=1000 pid=1222] Successfully activated service 'io.github.celluloid_player.Celluloid'
Dec 14 11:34:11 minie io.github.celluloid_player.Celluloid[4580]: Cannot load libcuda.so.1
Dec 14 11:35:36 minie kernel: [ 1433.924644] show_signal_msg: 14 callbacks suppressed
Dec 14 11:35:36 minie kernel: [ 1433.924648] mpv/vo[4598]: segfault at 10 ip 00007ff137075ad1 sp 00007ff18cbf61e0 error 4 in radeonsi_drv_video.so[7ff137052000+744000] likely on CPU 6 (core 3, socket 0)
Dec 14 11:35:36 minie kernel: [ 1433.924664] Code: 00 48 83 b8 90 00 00 00 00 74 46 8b b3 80 00 00 00 48 8b 7d 10 e8 bf 2e 07 00 49 89 c4 48 85 c0 0f 84 7b 01 00 00 48 8b 78 78 <8b> 47 10 83 f8 01 74 2f 83 f8 04 74 72 4c 89 ef e8 6a 65 05 00 31
Dec 14 11:35:36 minie systemd[1]: Created slice Slice /system/systemd-coredump.
Dec 14 11:35:36 minie systemd[1]: Started Process Core Dump (PID 4641/UID 0).
Dec 14 11:35:37 minie systemd-coredump[4642]: Process 4580 (celluloid) of user 1000 dumped core.
Found module linux-vdso.so.1 with build-id: 9483b2083c2a30ba4e4f346b36803f814b9a1743
Found module radeonsi_drv_video.so with build-id: de045fc6c8e63b30f1efa376d9354653fa7026e3
Found module libpciaccess.so.0 with build-id: 4c93da952f83c1d085d4bdead692db544c79b004#012
Dec 14 11:35:38 minie systemd[1]: systemd-coredump@0-4641-0.service: Deactivated successfully.
Dec 14 11:35:38 minie systemd[1]: systemd-coredump@0-4641-0.service: Consumed 1.432s CPU time.
Run in debug mode :
sebas@minie:~$ G_MESSAGES_DEBUG=all celluloid --mpv-options='--msg-level=all=trace' &> celluloid.log
github
Remove cookie :
sebas@minie:~/.config/pulse$ rm * ; remove .tdb files
sebas@minie:~/.config/pulse$ pulseaudio -k ; create new ones
sebas@minie:~/.config/pulse$ ls
24 -rw------- 1 sebas sebas 24576 Apr 4 20:53 95cfbeca9d1747b0a63d6a8026914614-card-database.tdb
12 -rw------- 1 sebas sebas 12288 Apr 4 20:53 95cfbeca9d1747b0a63d6a8026914614-device-volumes.tdb
4 -rw------- 1 sebas sebas 696 Apr 4 20:53 95cfbeca9d1747b0a63d6a8026914614-stream-volumes.tdb
4 -rw------- 1 sebas sebas 256 Apr 4 20:53 cookie
Then run manually :
sebas@minie:~$ mpv --replaygain-preamp=10 whatever.mp3
forum linuxmint
Or start MP4 file as always
Bluetooth + WH-1000XM2 headset crash
sebas@minie:~$ slog
Apr 13 18:27:58 minie systemd[1]: Starting Bluetooth management mechanism...
Apr 13 18:27:58 minie dbus-daemon[796]: [system] Successfully activated service 'org.blueman.Mechanism'
Apr 13 18:27:58 minie systemd[1]: Started Bluetooth management mechanism.
Apr 13 18:27:58 minie systemd[1]: Starting Load/Save RF Kill Switch Status...
Apr 13 18:27:58 minie systemd[1]: Started Load/Save RF Kill Switch Status.
Apr 13 18:27:58 minie kernel: [ 6217.116265] Bluetooth: hci0: Device setup in 142738 usecs
Apr 13 18:27:58 minie kernel: [ 6217.116277] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Apr 13 18:27:58 minie kernel: [ 6217.191118] Bluetooth: hci0: AOSP extensions version v1.00
Apr 13 18:27:58 minie kernel: [ 6217.191125] Bluetooth: hci0: AOSP quality report is supported
Apr 13 18:28:03 minie systemd[1]: systemd-rfkill.service: Deactivated successfully.
Apr 13 18:28:28 minie systemd[1]: blueman-mechanism.service: Deactivated successfully.
Apr 13 18:28:41 minie systemd[946]: Reached target Bluetooth.
Apr 13 18:28:43 minie pulseaudio[995]: Assertion '!pa_hashmap_isempty(data.profiles)' failed at ../src/modules/bluetooth/module-bluez5-device.c:2267, function add_card(). Aborting.
Apr 13 18:28:43 minie systemd[1]: Created slice Slice /system/systemd-coredump.
Apr 13 18:28:43 minie systemd[1]: Started Process Core Dump (PID 11022/UID 0).
Apr 13 18:28:46 minie bluetoothd[791]: profiles/audio/media.c:endpoint_reply() Endpoint replied with an error: org.freedesktop.DBus.Error.NoReply
Apr 13 18:28:46 minie systemd-coredump[11023]: Process 995 (pulseaudio) of user 1000 dumped core.
#012#012Found module linux-vdso.so.1 with build-id: 24544dfc4a0fd9fa84a623515c92f78febfb440b
#012Found module module-bluez5-device.so with build-id: 642293b45aff44d046256cd0a95eeec252dd8c18
#012Found module libuuid.so.1 with build-id: 2ad45e51f4ac4fc8b5f4ef938a18ca8e0a05e4af
#012Found module libSM.so.6 with build-id: 6b32192c8a8870a8fe04403f537e806da93a1dd8
#012Found module libICE.so.6 with build-id: cf39da2f7c723f976c6e676704e218513e2b0b2b
...
Apr 13 18:28:46 minie systemd[1]: systemd-coredump@0-11022-0.service: Deactivated successfully.
Apr 13 18:28:46 minie systemd[1]: systemd-coredump@0-11022-0.service: Consumed 3.538s CPU time.
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/ldac_hq
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/ldac_sq
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/ldac_mq
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSink/aptx_hd
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx_hd
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSink/aptx
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSink/sbc
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/sbc
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSink/sbc_xq_453
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Apr 13 18:28:46 minie bluetoothd[791]: profiles/audio/a2dp.c:select_cb() Unable to select a valid configuration
Apr 13 18:28:46 minie bluetoothd[791]: Endpoint unregistered: sender=:1.38 path=/MediaEndpoint/A2DPSource/sbc_xq_552
Apr 13 18:28:46 minie systemd[946]: pulseaudio.service: Main process exited, code=dumped, status=6/ABRT
Apr 13 18:28:46 minie systemd[946]: pulseaudio.service: Failed with result 'core-dump'.
Apr 13 18:28:46 minie systemd[946]: pulseaudio.service: Consumed 44.990s CPU time.
Apr 13 18:28:47 minie systemd[946]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
Apr 13 18:28:47 minie systemd[946]: Stopped Sound Service.
Apr 13 18:28:47 minie systemd[946]: pulseaudio.service: Consumed 44.990s CPU time.
Apr 13 18:28:47 minie systemd[946]: Starting Sound Service...
Apr 13 18:28:47 minie rtkit-daemon[1014]: Successfully made thread 11035 of process 11035 owned by '1000' high priority at nice level -11.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Supervising 3 threads of 3 processes of 1 users.
Apr 13 18:28:47 minie pulseaudio[11035]: Stale PID file, overwriting.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Supervising 3 threads of 3 processes of 1 users.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Successfully made thread 11037 of process 11035 owned by '1000' RT at priority 5.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Supervising 4 threads of 3 processes of 1 users.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Supervising 4 threads of 3 processes of 1 users.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Successfully made thread 11038 of process 11035 owned by '1000' RT at priority 5.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Supervising 5 threads of 3 processes of 1 users.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Supervising 5 threads of 3 processes of 1 users.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Successfully made thread 11039 of process 11035 owned by '1000' RT at priority 5.
Apr 13 18:28:47 minie rtkit-daemon[1014]: Supervising 6 threads of 3 processes of 1 users.
Apr 13 18:28:47 minie systemd[946]: Started Sound Service.
Apr 13 18:28:47 minie pulseaudio[11035]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(),
is bluetoothd started with experimental features enabled (-E flag)?
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/ldac_hq
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/ldac_sq
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/ldac_mq
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSink/aptx_hd
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/aptx_hd
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSink/aptx
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/aptx
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSink/sbc
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/sbc
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSink/sbc_xq_453
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Apr 13 18:28:47 minie bluetoothd[791]: Endpoint registered: sender=:1.194 path=/MediaEndpoint/A2DPSource/sbc_xq_552
sebas@minie:~$ dmesg {2nd try}
[ 6722.662629] input: WH-1000XM2 (AVRCP) as /devices/virtual/input/input15
la pantalla s'apaga
Això passa en conectar un nou dispositiu (as USB) però també "random", sense acció externa.
20250904 - provo de inhibir la apagada per inactivitat :
- "Power Managment"
- "Power Options"
- "Turn off screen" := "never"
em quedo sense teclat
Obre un Terminal i enganxa-hi aquesta comanda :
sudo modprobe -r atkbd && sudo modprobe atkbd
Que hi ha :
sebas@minie:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ PixArt USB Optical Mouse id=9 [slave pointer (2)]
⎜ ↳ USB-compliant keyboard Mouse id=11 [slave pointer (2)]
⎜ ↳ USB-compliant keyboard Consumer Control id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ USB-compliant keyboard id=10 [slave keyboard (3)]
↳ USB-compliant keyboard System Control id=13 [slave keyboard (3)]
↳ USB-compliant keyboard id=14 [slave keyboard (3)]
↳ USB-compliant keyboard Mouse id=15 [slave keyboard (3)]
↳ USB-compliant keyboard Consumer Control id=16 [slave keyboard (3)]
sebas@minie:~$ cat /sys/bus/usb/devices/usb1/power/control
auto
Què fer per "ressuscitar-lo" sense reiniciar
Pots provar de forçar el sistema a tornar a llegir els dispositius d'entrada sense tancar la sessió. Enganxa això:
sudo udevadm trigger --subsystem-match=input
Aquest comandament obliga al sistema a tornar a detectar tots els teclats i ratolins.
Ningún alma excelente está exenta de un toque de locura