#
# sc_hardware config file
#
# $Id: sc_hardware 5647 2018-02-20 14:05:20Z joergs $
#

#
# cached "hwinfo --bios" information
#
SC_HARDWARE_HWINFO_BIOS_CACHE="/var/tmp/hwinfo_bios.out"

#
# directory, where sc_hardware_prepare specific template files are stored
#
SC_HARDWARE_TEMPLATE_DIR="/etc/smartclient/sc_hardware-templates/"


#
# pc_type specific commands
# executed by sc_hardware_prepare
#
# openSUSE 10.0
#SC_HARDWARE_V100='setserial /dev/ttyS2 irq 5 autoconfig; 855resolution 3c 1280 800; 855resolution 4d 1280 800; 855resolution 5c 1280 800'
# openSUSE 11.2 / 12.1
SC_HARDWARE_V100='setserial /dev/ttyS2 irq 5 autoconfig; modprobe waltoptablet; /usr/sbin/waltopattach; grub-add-kernel-option.sh processor.max_cstate=1'
SC_HARDWARE_MettenmeierColibriX6='chkconfig vmtoolsd off; chkconfig vmware off; chkconfig vmware-USBArbitrator off'
# openSUSE 13.1
SC_HARDWARE_HpProBook650g2='/usr/sbin/sc_hardware_update-hp-notebooks.sh; /usr/sbin/sc_grub-add-kernel-option.sh "pci=noaer"'
SC_HARDWARE_HpEliteBook820g3='/usr/sbin/sc_hardware_update-hp-notebooks.sh'
SC_HARDWARE_FujitsuEsprimoP957='/usr/sbin/sc_hardware_update-FujitsuEsprimoP957.sh'

#
# pc_type specific configuration files
# If exists, links are created from this files 
# to there pc_type specific counterparts
#
# openSUSE 10.0
#SC_HARDWARE_SPECIFIC_CONFIGS='/etc/X11/xorg.conf /etc/sysconfig/powersave/events /etc/sysconfig/powersave/sleep'
# openSUSE 11.2
#SC_HARDWARE_SPECIFIC_CONFIGS='/etc/modprobe.d/broadcom-wl.conf /etc/pm/config.d/vermkv.config /etc/X11/xorg.conf'
# openSUSE 12.1
SC_HARDWARE_SPECIFIC_CONFIGS=''



#
# X11
#

#
# to start the graphic card detection on every boot, uncomment the next line
#
#SC_HARDWARE_X_START=ONBOOT
SC_HARDWARE_X_MARKER="/var/tmp/sax_has_run"
SC_HARDWARE_X_SAX=/usr/sbin/SaX2

#
# openSUSE 10.0
#
# create links from /etc/X11/xorg.conf
#   to xorg.conf.clone resp. xorg.conf.extonly
#   according to LID status
# required for higher resolution
#   on laptops with only external monitor
SC_HARDWARE_X_LINK_LID_STATUS="no"

#
# openSUSE 10.0
#
#   tested NVIDIA-Linux-x86-100.14.19
#     GeForce 6200     (10de:0161)
#     GeForce 7300     (10de:01d1)
#     [failed: GeForce 9300GE  (10de:06e0)]
#     kuickshow (kdegraphics3-imaging-3.4.2-12.2)
#   tested NVIDIA-Linux-x86-177.70.33
#     GeForce 7300     (10de:01d1)
#     GeForce 9300GE   (10de:06e0)
#     kuickshow (kdegraphics3-imaging-3.4.2-12.2)
#   tested NVIDIA-Linux-x86-180.51
#     [failed: kuickshow (kdegraphics3-imaging-3.4.2-12.2)]
#   tested NVIDIA-Linux-x86-180.60
#     [failed: kuickshow (kdegraphics3-imaging-3.4.2-12.2)]
#   tested NVIDIA-Linux-x86-185.18.14
#     [failed: kuickshow (kdegraphics3-imaging-3.4.2-12.2)]
#   tested NVIDIA-Linux-x86-185.18.31
#     [failed: kuickshow (kdegraphics3-imaging-3.4.2-12.2)]
#   tested NVIDIA-Linux-x86-185.18.36
#     GeForce 7300     (10de:01d1)
#     GeForce 9300GE   (10de:06e0)
#     [failed: kuickshow (kdegraphics3-imaging-3.4.2-12.2)]
#
# not all Nvidia driver can be used,
# because kuickshow (kdegraphics3-imaging-3.4.2-12.2) failes:
# instead of displaying an image, it shows only a black window.
# This is a known problem, but the workarounds (XLIB_SKIP_ARGB_VISUALS=1)
# or ARGB or visual settings the xorg.conf do not fix the problem.
# Therefore we use NVIDIA-Linux-x86-177.70.33 on openSUSE 10.0
#
#SC_HARDWARE_X_NVIDIA_INSTALLER="/usr/local/lib/NVIDIA-Linux-x86-177.70.33-pkg1.run"
#SC_HARDWARE_X_NVIDIA_DUALHEAD_HACK="yes"

#
# nvidia brings its own libglx.so
# This library generates conflicts on other systems,
# therefore the final link is 
# not transfered by SmartClient
# and only generated on nvidia systems
# see https://trac.dass-it.de/lvermgeo/ticket/241
#
SC_HARDWARE_X_NVIDIA_LIBGLX="/usr/lib/xorg/modules/updates/extensions/libglx.so"



#
# Network
#

# openSUSE 12.1
SC_HARDWARE_NM_CLI=nmcli
SC_HARDWARE_CREDENTIALS_BACKEND="systemd"

# openSUSE 11.2
#SC_HARDWARE_NM_CLI=cnetworkmanager
#SC_HARDWARE_CREDENTIALS_BACKEND="stdio"

#
# set this variable, if old config files should be removed,
#   before the new config file is generated.
#   The better approach would be, 
#   to exclude this files from software transfer.
#   It might be also useful but currently not neccessary 
#   to delete the hardware configuration files
#   (/etc/sysconfig/hardware/hwcfg-*)
# Distri: Suse Linux 9.1, SLES9, ... 
#           (if rsync exclude is not defined appropriate)
#
REMOVE_OLD_CONF="/etc/sysconfig/network/ifcfg-eth-* /etc/sysconfig/network/ifcfg-tr-*"

#
# hwinfo --netcard
#
NETCARD_INFO_FILE="/var/tmp/netcards_info"

#
# Network: WLAN
#
SC_HARDWARE_WLAN_LOG_FILE="/var/log/smartclient/sc_hardware_wlan.log"
SC_HARDWARE_WLAN_CONNECTION_ID="sc_nm_wlan"
SC_HARDWARE_WLAN_CONF_NAME="sc_nm_wlan"
SC_HARDWARE_WLAN_CONF_TEMPLATE="/etc/smartclient/nm_wlan_template"
SC_HARDWARE_WLAN_CONF_TARGET_DIR="/etc/NetworkManager/system-connections/"
# using links for NetworkManager config files
# does work with 12.1, but not with 13.1, therefore leave unset/empty
#SC_HARDWARE_WLAN_CONF_TMP_DIR="/dev/shm/NetworkManager/system-connections/"
# openSUSE 13.1
SC_HARDWARE_WLAN_START=PAM
# openSUSE 12.1
#SC_HARDWARE_WLAN_START=BOOT


#
# Scanner
#
SC_HARDWARE_SCANNER_DLLS="hp hpoj epson avision plustek microtek microtek2"
