Copy all files recursively from drive D to E:\WinData subfolder:
Robocopy.exe D:\ E:\WinData /e /z /dcopy:DAT /xd "System Volume Information" /xd "$RECYCLE.BIN" /A-:SH
Fix hidden directory (robocopy bug):
attrib -s -h E:\WinData
Friday, April 24, 2020
Sunday, January 5, 2020
xubuntu 18.04 mouse sensitivity fix
If GUI mouse sensitivity settings don't work try using commands:
> xinput
Will output:
Remember those id's or use "Logitech USB Receiver" and "Logitech USB Laser Mouse" device names in the following commands.
> xinput list-props 'Logitech USB Laser Mouse'
We need to set 'libinput Accel Speed' property to 1.0 value for maximum speed.
> xinput set-prop 'Logitech USB Laser Mouse' 'libinput Accel Speed' 1.0
Make a bash script and add it to "Session and Startup":
> xinput
Will output:
Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=9 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver Consumer Control id=10 [slave pointer (2)]
⎜ ↳ Logitech USB Laser Mouse id=15 [slave pointer (2)]
Remember those id's or use "Logitech USB Receiver" and "Logitech USB Laser Mouse" device names in the following commands.
> xinput list-props 'Logitech USB Laser Mouse'
Device 'Logitech USB Laser Mouse':
Device Enabled (155): 1
Coordinate Transformation Matrix (157): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (289): 0
libinput Natural Scrolling Enabled Default (290): 0
libinput Scroll Methods Available (291): 0, 0, 1
libinput Scroll Method Enabled (292): 0, 0, 0
libinput Scroll Method Enabled Default (293): 0, 0, 0
libinput Button Scrolling Button (294): 2
libinput Button Scrolling Button Default (295): 2
libinput Middle Emulation Enabled (296): 0
libinput Middle Emulation Enabled Default (297): 0
libinput Accel Speed (298): 1.000000
libinput Accel Speed Default (299): 0.000000
libinput Accel Profiles Available (300): 1, 1
libinput Accel Profile Enabled (301): 1, 0
libinput Accel Profile Enabled Default (302): 1, 0
libinput Left Handed Enabled (303): 0
libinput Left Handed Enabled Default (304): 0
libinput Send Events Modes Available (274): 1, 0
libinput Send Events Mode Enabled (275): 0, 0
libinput Send Events Mode Enabled Default (276): 0, 0
Device Node (277): "/dev/input/event11"
Device Product ID (278): 1133, 49257
libinput Drag Lock Buttons (305):
libinput Horizontal Scroll Enabled (306): 1
We need to set 'libinput Accel Speed' property to 1.0 value for maximum speed.
> xinput set-prop 'Logitech USB Laser Mouse' 'libinput Accel Speed' 1.0
Make a bash script and add it to "Session and Startup":
#!/bin/bash
#xinput set-prop 15 298 1.0
#xinput set-prop 9 298 1.0
xinput set-prop 'Logitech USB Laser Mouse' 'libinput Accel Speed' 1.0
xinput set-prop 'Logitech USB Receiver' 'libinput Accel Speed' 1.0
ubuntu avahi fix for Belarus/Beltelecom/Byfly
If there's "Avahi Service discovery disabled" popup displayed, check
"host -t SOA local".
If there's something like "local has SOA record local. root.mgts.by", you can make avahi ignore that wrong configuration via editing /etc/default/avahi-daemon:
"host -t SOA local".
If there's something like "local has SOA record local. root.mgts.by", you can make avahi ignore that wrong configuration via editing /etc/default/avahi-daemon:
AVAHI_DAEMON_DETECT_LOCAL=0
xubuntu 18.04 installing with nvidia graphics, tearing fixes
Before installing (running LiveCD/USB)
Edit GRUB options in the live-cd menu by adding "nomodeset" argument to the kernel parameters string.After installing
Repeat "nomodeset" option as described above before the first boot.- "apt install nvidia-driver-435"
- Reboot
- In "NVidia X Server Settings -> X Server Display Configuration -> Advanced..." switch on "Force Composition Pipeline".
- Enable XFCE compositor (Menu->Window Manager Tweaks->Compositor->Enable display compositing)
- Enable the "Synchronize drawing to the vertical blank" option in the "Window Manager Tweaks" "Compositor" tab.
Saturday, November 2, 2019
Fix nvidia OpenCL/CUDA driver after resume from suspend
fixes OpenCL/CUDA/NVENC after suspend:
sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm
sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm
Sunday, February 3, 2019
Backup home directory
duplicity --no-encryption --progress -vi --include-filelist incl_filelist.txt --exclude '/home/yur' /home/yur file://./home_yur
date -Isec
incl_filelist.txt:
/home/yur/.config
/home/yur/Desktop
/home/yur/Documents
/home/yur/.dosbox
/home/yur/Downloads
/home/yur/.gitconfig
/home/yur/.hgrc
/home/yur/.local
/home/yur/local_inst
/home/yur/local_src
/home/yur/.mozilla
/home/yur/.mpv
/home/yur/my_projects
/home/yur/myvim.vim
/home/yur/.nbi
/home/yur/.netbeans
/home/yur/.ssh
/home/yur/.vim
/home/yur/.vimrc
/home/yur/.vscode
date -Isec
incl_filelist.txt:
/home/yur/.config
/home/yur/Desktop
/home/yur/Documents
/home/yur/.dosbox
/home/yur/Downloads
/home/yur/.gitconfig
/home/yur/.hgrc
/home/yur/.local
/home/yur/local_inst
/home/yur/local_src
/home/yur/.mozilla
/home/yur/.mpv
/home/yur/my_projects
/home/yur/myvim.vim
/home/yur/.nbi
/home/yur/.netbeans
/home/yur/.ssh
/home/yur/.vim
/home/yur/.vimrc
/home/yur/.vscode
Saturday, November 17, 2018
G-Pen 560 in 2018, manjaro linux
cat /usr/share/X11/xorg.conf.d/70-aiptekmy.conf
Section "InputClass"
Identifier "pen"
MatchProduct "Aiptek|AIPTEK|aiptek"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SendCoreEvents" "true"
Option "USB" "on"
Option "Type" "stylus"
Option "Mode" "absolute"
Option "zMin" "0"
Option "zMax" "1023"
Option "TopX" "185"
Option "TopY" "372"
Option "BottomX" "11811"
Option "BottomY" "8793"
Option "TopZ" "32"
EndSection
Section "InputClass"
Identifier "pen"
MatchProduct "Aiptek|AIPTEK|aiptek"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SendCoreEvents" "true"
Option "USB" "on"
Option "Type" "stylus"
Option "Mode" "absolute"
Option "zMin" "0"
Option "zMax" "1023"
Option "TopX" "185"
Option "TopY" "372"
Option "BottomX" "11811"
Option "BottomY" "8793"
Option "TopZ" "32"
EndSection
Subscribe to:
Posts (Atom)