Я записал следующий сценарий так, чтобы я мог изменить свой масштабный коэффициент динамично с помощью сочетаний клавиш на моем Dell, Мини-10v нетбук:
#!/bin/bash #/usr/local/bin/xrandr-scale-tool #first, we read the config files if [ -r ~/.config/xrandr-scale-tool/xscale ] then xscale=$(~/.config/xrandr-scale-tool/xscale fi if [ ! -e ~/.config/xrandr-scale-tool/output ] then output=LVDS1 echo $output>~/.config/xrandr-scale-tool/output fi if [ ! -e ~/.config/xrandr-scale-tool/baseresx ] then baseresx=1024 echo $baseresx>~/.config/xrandr-scale-tool/baseresx fi if [ ! -e ~/.config/xrandr-scale-tool/baseresy ] then baseresy=600 echo $baseresy>~/.config/xrandr-scale-tool/baseresy fi #if they aren't readable, exit with status 1 if [ ! -r ~/.config/xrandr-scale-tool/xscale ] || [ ! -r ~/.config/xrandr-scale-tool/baseresx ] || [ ! -r ~/.config/xrandr-scale-tool/baseresy ] || [ ! -r ~/.config/xrandr-scale-tool/output ] then echo A config file could not be read exit 1 fi #now, we check the first argument to see what to do if [ -z "$1" ] then #restore from settings xrandr --output $output --scale ${xscale}x${xscale} --panning 0x0+0+0 xrandr --output $output --scale ${xscale}x${xscale} --panning `xrandr -q | awk -F'current' -F',' 'NR==1 {gsub("( |current)","");print $2}'` fi if [ "$1" == "+" ] then #increment and apply amt=$2 xscale=`echo $xscale+$amt|bc` xrandr --output $output --scale ${xscale}x${xscale} --panning 0x0+0+0 xrandr --output $output --scale ${xscale}x${xscale} --panning `xrandr -q | awk -F'current' -F',' 'NR==1 {gsub("( |current)","");print $2}'` sleep 2 notify-send "Scale Factor: $xscale" --icon=display fi if [ "$1" == "-" ] then #decrement and apply amt=$2 xscale=`echo $xscale-$amt|bc` xrandr --output $output --scale ${xscale}x${xscale} --panning 0x0+0+0 xrandr --output $output --scale ${xscale}x${xscale} --panning `xrandr -q | awk -F'current' -F',' 'NR==1 {gsub("( |current)","");print $2}'` sleep 2 notify-send "Scale Factor: $xscale" --icon=display fi if [ "$1" == "reset" ] then #reset xscale=1 xrandr --output $output --scale ${xscale}x${xscale} --panning `echo $xscale*$baseresx|bc`x`echo $xscale*$baseresy|bc` sleep 2 notify-send "Scale Factor: $xscale" --icon=display fi #record changes in scale to file before exiting echo $xscale>~/.config/xrandr-scale-tool/xscale exit 0
Этот сценарий предполагает, что Ваше разрешение по умолчанию 1024x600, и Вы используете дисплей на LVDS1. Если это не имеет место, отредактируйте файлы в ~/.config/xrandr-scale-tool
отразить это (файлы конфигурации сгенерированы после первого показа).
Этот скрипт может быть запущен четырьмя способами:
xrandr-scale-tool
восстановления масштабируют настройки из файла конфигурации, который сохраняется на каждом выполнении
xrandr-scale-tool + 0.1
увеличивает масштаб 0,1. Можно использовать любое число здесь
xrandr-scale-tool - 0.1
постепенно уменьшает масштаб 0,1. Снова, любые работы числа
xrandr-scale-tool reset
сбрасывает масштаб к 1.
Каждый раз масштаб изменяется, notify-send
выполненный должен показать Вам текущий масштабный коэффициент с помощью уведомления.
Путем я настроил, мой - это xrandr-scale-tool + 0.125
отображается на CtrlAlt +, xrandr-scale-tool - 0.125
отображается на CtrlAlt-, и xrandr-scale-tool reset
отображается на CtrlAlt0. xrandr-scale-tool
выполняется, без аргументов, на входе в систему, так, чтобы, какой бы ни масштабируются, я использовал, прежде используется на моем следующем входе в систему.
Вы можете попробовать добавить спящий режим
в сценарий nfs-kernel-server
.
Откройте сценарий с помощью:
$ sudo vim /etc/init.d/nfs-kernel-server
Прокрутите вниз и найдите раздел start ()
(обычно он находится в первом случае
) и добавьте 30 секунд ожидания в разделе start
:
sleep 30
Сохранить и выйти.
В /etc/fstab
вы можете попробовать добавить x-systemd.before=nfs-kernel-server.service
как опцию к монтировке, может быть?