Code: Select all
#! /bin/bash
sudo ddccontrol -r 0x60 -w 17 dev:/dev/i2c-3
Code: Select all
Run | Run in Terminal | Display | Cancel
However, since it needs root access to do this, I can't figure out how to give this one specific script root access on its own. I tried putting it in the sudoers.d folder which did nothing; I tried
Code: Select all
chmod
Code: Select all
chown
Code: Select all
visudo
The script itself works so that's neat, but I need to run it in a terminal and then input my root password.
Any ideas?
Thanks
Here's my
Code: Select all
inxi -Fxxxrz
Code: Select all
System:
Kernel: 5.13.0-21-generic x86_64 bits: 64 compiler: N/A
Desktop: Cinnamon 5.0.7 info: kdocker wm: muffin 5.0.2 dm: LightDM 1.30.0
Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal
Machine:
Type: Laptop System: Acer product: Aspire A315-51 v: V1.14
serial: <filter>
Mobo: SKL model: Venusaur_KL v: V1.14 serial: <filter> UEFI: Insyde
v: 1.14 date: 10/31/2018
Battery:
ID-1: BAT1 charge: 5.4 Wh condition: 5.4/37.0 Wh (15%) volts: 8.4/7.7
model: PANASONIC AP16M5J type: Li-ion serial: <filter> status: Full
CPU:
Topology: Dual Core model: Intel Core i3-6006U bits: 64 type: MT MCP
arch: Skylake rev: 3 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 15999
Speed: 903 MHz min/max: 400/2000 MHz Core speeds (MHz): 1: 856 2: 794
3: 796 4: 797
Graphics:
Device-1: Intel Skylake GT2 [HD Graphics 520]
vendor: Acer Incorporated ALI driver: i915 v: kernel bus ID: 00:02.0
chip ID: 8086:1916
Display: x11 server: X.Org 1.20.11 driver: modesetting
unloaded: fbdev,vesa resolution: 1366x768~60Hz, 1920x1080~60Hz
OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 21.0.3
direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:9d70
Sound Server: ALSA v: k5.13.0-21-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000
bus ID: 02:00.1 chip ID: 10ec:8168
IF: enp2s0f1 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: Lite-On driver: ath10k_pci v: kernel port: 3000 bus ID: 03:00.0
chip ID: 168c:0042
IF: wlp3s0 state: up mac: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 492.00 GiB (52.8%)
ID-1: /dev/sda vendor: Western Digital model: WDS100T2B0A-00SM50
size: 931.51 GiB speed: 6.0 Gb/s serial: <filter> rev: 20WD scheme: GPT
Partition:
ID-1: / size: 915.40 GiB used: 492.00 GiB (53.7%) fs: ext4 dev: /dev/sda2
Sensors:
System Temperatures: cpu: 41.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos:
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list
1: deb https://typora.io/linux ./
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://mirror.funkfreundelandshut.de/linuxmint/packages uma main upstream import backport
2: deb http://ftp.fau.de/ubuntu focal main restricted universe multiverse
3: deb http://ftp.fau.de/ubuntu focal-updates main restricted universe multiverse
4: deb http://ftp.fau.de/ubuntu focal-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http://archive.canonical.com/ubuntu/ focal partner
Active apt repos in: /etc/apt/sources.list.d/protonvpn-stable.list
1: deb [signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main
Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
Active apt repos in: /etc/apt/sources.list.d/smathot-cogscinl-focal.list
1: deb http://ppa.launchpad.net/smathot/cogscinl/ubuntu focal main
Info:
Processes: 262 Uptime: 3h 54m Memory: 7.65 GiB used: 4.77 GiB (62.4%)
Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash
v: 5.0.17 running in: gnome-terminal inxi: 3.0.38