2021-09-13

m3400 - slitaz-x86_64-UEFI


slitaz-x86_64-UEFI

+++ System Info
System         = ASUSTeK COMPUTER INC. 1.0        VivoBook_ASUSLaptop M3400QA_M3400QA
BIOS           = M3400QA.301
Release        = "SliTaz GNU/Linux"
Kernel         = 5.4.41-slitaz #1 SMP Sat Aug 29 08:07:49 CST 2020 x86_64
/proc/cmdline  = BOOT_IMAGE=/efi/boot/vmlinuz-5.4.41-slitaz root=/dev/null autologin
Init system    = sysvinit
Boot mode      = UEFI
Kernel command line: BOOT_IMAGE=/efi/boot/vmlinuz-5.4.41-slitaz root=/dev/null autologin

tux@slitaz:~$ cat /proc/cmdline
BOOT_IMAGE=/efi/boot/vmlinuz-5.4.41-slitaz root=/dev/null autologin

tux@slitaz:~$ ls /sys/firmware/efi
config_table esrt fw_vendor runtime-map vars
efivars fw_platform_size runtime systab

tux@slitaz:~$ cat /sys/firmware/efi/fw_vendor
0xcd13cf18


https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2#post-50275


 

m3400 - X11 Forwarding for Desktop over SSH

 

X11 Forwarding for Desktop over SSH

Type the command below, which will activate xinit in virtual terminal 8. Note that you will be automatically switched to virtual terminal 8. You can switch back to the original virtual terminal 7 by pressing Ctrl+Alt+F7.

# xinit -- :1 &

After switching to virtual terminal 8, execute the following command to launch the RPi desktop remotely. Type pi user password when asked (see picture below).

# DISPLAY=:1 ssh -X pi@192.168.2.5 lxsession

You will bring to your new virtual terminal 8 the remote RPi desktop, as well as a small terminal launched from your active virtual terminal 7 (see picture below).

Remember, do not close that terminal. Otherwise, your RPi desktop will close immediately.

You can move between first and second virtual terminals by pressing Ctrl+Alt+F7 or Ctrl+Alt+F8.

https://www.xmodulo.com/remote-control-raspberry-pi.html

virtual terminal 7 - vt7

root@slitaz:~# xinit -- :1 &
root@slitaz:~#

X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: SliTaz GNU/Linux
Current Operating System: Linux slitaz 5.4.41-slitaz #1 SMP Sat Aug 29 08:07:49 CST 2020 x86_64
Kernel command line: BOOT_IMAGE=/efi/boot/vmlinuz-5.4.41-slitaz root=/dev/null autologin
Build Date: 15 March 2018 04:57:16PM

Current version of pixman: 0.34.0
Before reporting problems, check http://www.slitaz.org/
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sat Sep 4 11:54:59 2021
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"


root@slitaz:~# ps ax | grep -B 1 -A 5 Xorg

 2636 ?        Ss     0:00 /usr/bin/slim -d
 2642 tty7     Ssl+   1:09 /usr/libexec/Xorg -auth /var/run/slim.auth vt07
 2657 ?        Sl     0:04 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
 2695 ?        S      0:00 dbus-launch --sh-syntax --exit-with-session openbox-session
 2696 ?        Ss     0:00 /usr/bin/dbus-daemon --fork --print-pid 6 --print-address 8 --session
 2709 ?        Sl     0:00 /usr/libexec/gvfsd
 2714 ?        Sl     0:00 /usr/libexec/gvfsd-fuse /home/tux/.gvfs -f -o big_writes
--
 4364 pts/0    S      0:00 xinit -- :1
 4366 tty8     S<sl+   0:00 /usr/libexec/Xorg :1
 4380 pts/0    S      0:00 xterm -geometry +1+1 -n login
 4381 pts/1    Ss     0:00 sh
 4383 ?        I      0:00 [kworker/3:2-events]
 4384 pts/1    S+     0:01 ssh -Y tux@192.168.0.192 openbox-session
 4389 ?        I      0:00 [kworker/4:0-events]
 4396 pts/0    R+     0:00 ps ax
 4398 pts/0    S+     0:00 grep -B 1 -A 5 Xorg
root@slitaz:~# 




virtual terminal 8 - vt8

login - xterm
root@slitaz:~# DISPLAY=:1 ssh -Y tux@192.168.0.192 openbox-session

Secure login on SliTaz GNU/Linux powered by Dropbear SSH server.
tux@192.168.0.192's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Obt-Message: Failed to open an Input Method
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-AbPhdIjHlc,guid=b322887fba9877e40478d99861333d77';
export DBUS_SESSION_BUS_ADDRESS;
DBUS_SESSION_BUS_PID=6567;
DBUS_SESSION_BUS_WINDOWID=8388609;

(pcmanfm:6548): GLib-CRITICAL **: g_file_test: assertion 'filename != NULL' failed

(pcmanfm:6548): GLib-CRITICAL **: g_file_test: assertion 'filename != NULL' failed

(pcmanfm:6548): GLib-CRITICAL **: g_file_test: assertion 'filename != NULL' failed

SliTaz x86_64 - sakura
~ $ lxpanel -p slitaz &

~ $
(lxpanel:6669): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(lxpanel:6669): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

~ $ echo $DISPLAY
localhost:10.0

~ $ env | egrep 'SSH|DIS'
SSH_CLIENT=192.168.0.191 59020 22
DISPLAY=localhost:10.0
SSH_CONNECTION=192.168.0.191 59020 192.168.0.192 22
~ $




https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2#post-50274


2021-09-11

slitaz -adb


slitaz -adb

slitaz-4.0.iso 34.7M

http://research.cs.wisc.edu/wings/projects/wisense/downloads/adb_tools_linux.tar.gz

check-list:
1.
tux@slitaz:~$ uname -a
Linux slitaz 2.6.37-slitaz #2 SMP Wed Mar 7 10:36:39 CET 2012 i686 GNU/Linux

2.
tux@slitaz:~$ tar -xzf adb_tools_linux.tar.gz

tux@slitaz:~$ ls -l platform-tools/adb
-rwxrwxr-x 1 tux users 1226659 Jun 14 2013

tux@slitaz:~$ platform-tools/adb version
Android Debug Bridge version 1.0.31

3.
tux@slitaz:~$ ldd platform-tools/adb

platform-tools/adb:
linux-gate.so.1 => (0xffffe000)
librt.so.1 => /lib/librt.so.1 (0xb7734000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7701000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb76e9000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb761d000)
libm.so.6 => /lib/libm.so.6 (0xb75f6000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb75df000)
libc.so.6 => /lib/libc.so.6 (0xb749b000)
libdl.so.2 => /lib/libdl.so.2 (0xb7497000)
/lib/ld-linux.so.2 => /lib/ld-2.13.so (0xb773d000)

4.
tux@slitaz:~$ sudo tazpkg get-install file

tux@slitaz:~$ file platform-tools/adb

platform-tools/adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped 


https://forum.slitaz.org/topic/android-adb-tool-does-not-want-to-work-on-slitaz-40#post-50272

m3400 - X11 Forwarding over sshx

 

X11 Forwarding over sshx

Dropbear and the X server

Dropbear supports X11 tunneling on the server side only. The client dbclient has no support for X11 tunneling. SliTaz provides a tiny shell script named /usr/bin/sshx to do the work. It opens a terminal with remote X11 protocol support if the environment variable DISPLAY is set. You can launch any remote X windows application on this terminal.

https://doc.slitaz.org/en:handbook:ssh#dropbear-and-the-x-server

tux@slitaz:~$ sshx tux@192.168.0.192

dbclient:
Host '192.168.0.192' key accepted unconditionally.
(ecdsa-sha2-nistp256 fingerprint md5 fc:6e:2b:c2:d7:68:46:d8:92:62:ef:e0:37:8d:8c:55)

Secure login on SliTaz GNU/Linux powered by Dropbear SSH server.

tux@192.168.0.192's password:

switch to xterm
tux@slitaz:~$ echo $DISPLAY
localhost:77.0

tux@slitaz:~$ env | egrep 'SSH|DIS'
SSH_CLIENT=192.168.0.191 46322 22
DISPLAY=localhost:77.0
SSH_CONNECTION=192.168.0.191 46322 192.168.0.192 22

tux@slitaz:~$ leafpad /usr/bin/sshx






https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2#post-50271

m3400 - X11 Forwarding over SSH

 

X11 Forwarding over SSH

Dropbear server implements X11 forwarding, and
authentication-agent forwarding for OpenSSH clients

https://matt.ucc.asn.au/dropbear/dropbear.html

tux@slitaz:~$ ssh -V
OpenSSH_7.6p1, OpenSSL 1.1.0g 2 Nov 2017

tux@slitaz:~$ grep -B 1 XAuth /etc/ssh_config
Host *
XAuthLocation /usr/bin/xauth

tux@slitaz:~$ ssh -Y root@192.168.0.192

Secure login on SliTaz GNU/Linux powered by Dropbear SSH server.
root@192.168.0.192's password:

Welcome to the Open Source World!

SliTaz GNU/Linux is distributed in the hope that it will be useful,
but with ABSOLUTELY NO WARRANTY.

root@slitaz:~# echo $DISPLAY
localhost:10.0

root@slitaz:~# leafpad test.txt




https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2#post-50270


2021-09-08

m3400 - make xconfig - QT/X-windows interface

 

make xconfig - QT/X-windows interface



Kernel : Linux 5.4.41-slitaz (x86_64)

Current Operating System: Linux slitaz 5.4.41-slitaz #1 SMP Sat Aug 29 08:07:49 CST 2020 x86_64


Asus Notebook WMI Driver (ASUS_NB_WMI)

ASUS WMI Driver (ASUS_WMI)

CONFIG_ASUS_WMI:

Say Y here if you have a WMI aware Asus laptop (like Eee PCs or new
Asus Notebooks).

To compile this driver as a module, choose M here: the module will
be called asus-wmi.

Symbol: ASUS_WMI [=m]
Type : tristate
Prompt: ASUS WMI Driver
Location:
-> Device Drivers
-> X86 Platform Specific Device Drivers (X86_PLATFORM_DEVICES [=y])
Defined at drivers/platform/x86/Kconfig:674
Depends on: X86 [=y] && X86_PLATFORM_DEVICES [=y] && ACPI_WMI [=m] && ACPI_BATTERY [=y] && INPUT [=y] && HWMON [=y] && BACKLIGHT_CLASS_DEVICE [=y] && (RFKILL [=y] || RFKILL [=y]=n) && HOTPLUG_PCI [=y] && (ACPI_VIDEO [=y] || ACPI_VIDEO [=y]=n)
Selects: INPUT_SPARSEKMAP [=m] && LEDS_CLASS [=y] && NEW_LEDS [=y]


https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2?replies=19#post-50267

m3400 - Battery - lxpanel - lxqt-panel

 

Battery - lxpanel - lxqt-panel

lxpanel



lxqt-powermanagement



*** estimated value ***

Discharging Energy rate: 12.12 W
tux@slitaz:~$ calc 50/12.12
4.12541 (hr)

tux@slitaz:~$ calc 12.12/11.88
1.0202 (A)

Charging Energy rate: 48.42 W
tux@slitaz:~$ calc 50/48.42
1.03263 (hr)

tux@slitaz:~$ calc 48.42/11.88
4.07576 (A)


https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2?replies=19#post-50266


2021-09-06

m3400 - Battery - batstat

 

Battery - batstat


Discharging

tux@slitaz:~$ batstat

Status:                       Discharging
Max energy:                   49.74 Wh
Energy left:                  32.35 Wh
Power Consumption:            9.77 W
Percentage left:              65.03%
Average power Consumption:    10.42 Wh
Time elapsed:                  0: 9:18 since 68.28%
= Time   ======== Percent ============================================
 0: 0: 0          68.28%
 0: 1: 0          67.92%
 0: 2: 0          67.57%
 0: 3: 0          67.23%
 0: 4: 0          66.87%
 0: 5: 0          66.51%
 0: 6: 0          66.16%
 0: 7: 0          65.82%
 0: 8: 0          65.47%
 0: 9: 0          65.13%

Charging
tux@slitaz:~$ batstat

Status:                       Charging
Max energy:                   49.74 Wh
Energy left:                  39.40 Wh
Power Consumption:            23.91 W
Percentage left:              79.22%
Average power Consumption:    -25.38 Wh
Time elapsed:                  0: 3:39 since 76.12%
= Time   ======== Percent ============================================
 0: 0: 0          76.12%
 0: 1: 0          77.00%
 0: 2: 0          77.86%
 0: 3: 0          78.70%

https://github.com/Juve45/batstat


https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2#post-50264

2021-09-05

m3400 - Battery - tlp

 

Battery - tlp



Discharging
tux@slitaz:~$ sudo tlp-stat -b

Password:
--- TLP 1.1 --------------------------------------------

+++ Battery Status
/sys/class/power_supply/BAT0/manufacturer                   = ASUSTeK
/sys/class/power_supply/BAT0/model_name                     = ASUS Battery
/sys/class/power_supply/BAT0/cycle_count                    =     57
/sys/class/power_supply/BAT0/energy_full_design             =  50014 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  49741 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  31636 [mWh]
/sys/class/power_supply/BAT0/power_now                      =   9860 [mW]
/sys/class/power_supply/BAT0/status                         = Discharging

Charge                                                      =   63.6 [%]
Capacity                                                    =   99.5 [%]

Charging
tux@slitaz:~$ sudo tlp-stat -b
Password:
--- TLP 1.1 --------------------------------------------

+++ Battery Status
/sys/class/power_supply/BAT0/manufacturer                   = ASUSTeK
/sys/class/power_supply/BAT0/model_name                     = ASUS Battery
/sys/class/power_supply/BAT0/cycle_count                    =     57
/sys/class/power_supply/BAT0/energy_full_design             =  50014 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  49741 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  31779 [mWh]
/sys/class/power_supply/BAT0/power_now                      =  47032 [mW]
/sys/class/power_supply/BAT0/status                         = Charging

Charge                                                      =   63.9 [%]
Capacity                                                    =   99.5 [%]

tux@slitaz:~$ sudo tlp-stat -s
Password:
--- TLP 1.1 --------------------------------------------

+++ System Info
System         = ASUSTeK COMPUTER INC. 1.0        VivoBook_ASUSLaptop M3400QA_M3400QA
BIOS           = M3400QA.301
Release        = "SliTaz GNU/Linux"
Kernel         = 5.4.41-slitaz #1 SMP Sat Aug 29 08:07:49 CST 2020 x86_64
/proc/cmdline  = BOOT_IMAGE=/efi/boot/vmlinuz-5.4.41-slitaz root=/dev/null autologin
Init system    = sysvinit
Boot mode      = UEFI

+++ TLP Status
State          = enabled
Last run       = 13:37:23,    243 sec(s) ago
Mode           = battery
Power source   = battery

tux@slitaz:~$ 

https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/2?replies=16#post-50263

m3400 - Battery - upower

Battery - upower



Battery: ID-1: BAT0 charge: 17.9 Wh (36.0%) condition: 49.7/50.0 Wh (99.5%) volts: 11.9 min: 11.9
Battery 50WHrs, 3S1P, 3-cell lithium ion battery power supply ø4.5, 90W AC adapter, output: 19V DC, 4.74A, 90W, input: 100~240V AC 50/60Hz universal
discharging tux@slitaz:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: ASUSTeK model: ASUS Battery power supply: yes updated: Sun Sep 5 13:14:49 2021 (107 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging warning-level: none energy: 39.94 Wh energy-empty: 0 Wh energy-full: 49.741 Wh energy-full-design: 50.014 Wh energy-rate: 9.919 W voltage: 11.88 V time to empty: 4.0 hours percentage: 80% capacity: 99.4542% technology: lithium-ion icon-name: 'battery-full-symbolic' History (rate): 1630847689 9.919 discharging charging tux@slitaz:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: ASUSTeK model: ASUS Battery power supply: yes updated: Sun Sep 5 14:07:52 2021 (14 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging warning-level: none energy: 34.392 Wh energy-empty: 0 Wh energy-full: 49.741 Wh energy-full-design: 50.014 Wh energy-rate: 38.788 W voltage: 11.88 V time to full: 23.7 minutes percentage: 69% capacity: 99.4542% technology: lithium-ion icon-name: 'battery-full-charging-symbolic' History (charge): 1630850872 69.000 charging History (rate): 1630850872 38.788 charging

tux@slitaz:~$ upower -v
UPower client version 0.99.7

UPower daemon version 0.99.7 


https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa#post-50262 

2021-09-03

m3400 - xrandr - lxrandr

xrandr - lxrandr




Display: server: X.Org 1.19.3 driver: loaded: amdgpu
unloaded: fbdev,modesetting,vesa resolution: 2880x1800~90Hz

tux@slitaz:~$ xrandr

Screen 0: minimum 320 x 200, current 2880 x 1800, maximum 16384 x 16384
eDP-1 connected primary 2880x1800+0+0 (normal left inverted right x axis y axis) 302mm x 189mm

   2880x1800     90.00*+  60.00
   2048x1536     85.00    75.00    60.00
   1920x1440     85.00    75.00    60.00
   1856x1392     75.00    60.01
   1792x1344     75.00    60.01
   1920x1200     90.00
   1920x1080     90.00
   1600x1200     90.00    85.00    75.00    70.00    65.00    60.00
   1680x1050     90.00
   1400x1050     74.76    59.98
   1280x1024     90.00    85.02    75.02    60.02
   1440x900      90.00
   1280x960      85.00    60.00
   1280x800      90.00
   1152x864      75.00
   1280x720      90.00
   1024x768      90.00    85.00    75.05    60.04    85.00    75.03    70.07    60.00
   1024x768i     86.96
   960x720       85.00    75.00    60.00
   928x696       75.00    60.05
   896x672       75.05    60.01
   832x624       74.55
   800x600       90.00    85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25
   700x525       74.76    59.98
   640x512       85.02    75.02    60.02
   640x480       90.00    85.09    60.00    85.01    72.81    75.00    59.94
   720x400       85.04
   640x400       85.08
   576x432       75.00
   640x350       85.08
   512x384       85.00    75.03    70.07    60.00
   512x384i      87.06
   416x312       74.66
   400x300       85.27    72.19    75.12    60.32    56.34
   320x240       85.18    72.81    75.00    60.05
   360x200       85.04
   320x200       85.27
   320x175       85.27 

HDMI-1 disconnected (normal left inverted right x axis y axis) 


https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa#post-50259