Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This AI stuff is SCARY!!!
#87
Gemini 3 just released yesterday and it's already been a huge help for several things that would eat up my time. It generated a script that fixed my keyboard mapping permanently with a very minimal prompt.
Code: (Select All)
#!/bin/bash
# Script to fix Azio Keyboard Function Keys on Linux
# Author: Zachary Spriggs (Generated Assistant)
# Description: Forces hid_apple driver to use F-keys as default instead of media keys.

if [[ $EUID -ne 0 ]]; then
   echo "Error: This script must be run as root."
   echo "Usage: sudo ./fix_azio_keys.sh"
   exit 1
fi

echo "[-] Detected Azio/Mac-layout keyboard issue..."

# 1. Apply Immediate Runtime Fix
# Many Azio keyboards use the Apple HID driver. We force 'fnmode=2' (F-keys first).
if [ -d "/sys/module/hid_apple/parameters" ]; then
    echo "[-] Setting runtime parameter fnmode=2..."
    echo 2 > /sys/module/hid_apple/parameters/fnmode
    echo "[+] Runtime fix applied. Test your F-keys now."
else
    echo "[!] hid_apple module not currently loaded. It may load on reboot."
fi

# 2. Make Fix Permanent (Modprobe Config)
CONFIG_FILE="/etc/modprobe.d/hid_apple.conf"
echo "[-] Creating permanent configuration in $CONFIG_FILE..."

# 'iso_layout=0' fixes swapped key issues (like < and >) on some models
# 'fnmode=2' defaults to F1-F12 function keys
echo "options hid_apple fnmode=2 iso_layout=0" > "$CONFIG_FILE"

echo "[+] Configuration saved."

# 3. Update Initramfs (Required to apply before login)
echo "[-] Updating initramfs to persist changes..."

if command -v update-initramfs &> /dev/null; then
    # Debian/Ubuntu/Mint
    update-initramfs -u
elif command -v dracut &> /dev/null; then
    # Fedora/RHEL/CentOS
    dracut --force
elif command -v mkinitcpio &> /dev/null; then
    # Arch/Manjaro
    mkinitcpio -P
else
    echo "[!] Could not detect initramfs updater (update-initramfs/dracut/mkinitcpio)."
    echo "[!] You may need to manually update your boot image."
fi

echo ""
echo "SUCCESS: Configuration complete."
echo "1. If F-keys work now, you are done."
echo "2. If not, try replugging the keyboard."
echo "3. If keys are still wrong, try the hardware toggle: Fn + Esc."

Also, it generated some scripts I used for work and a really nice query that we're using for investigating db locks. Not necessarily faster than 2.5 but definitely way more competent. I think I saw it just topped the LLM charts, surpassing Grok 4.1 Thinking, or whatever the previous top one was.
The noticing will continue
Reply


Messages In This Thread
This AI stuff is SCARY!!! - by Unseen Machine - 08-04-2025, 03:49 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-04-2025, 04:00 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-05-2025, 03:12 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-06-2025, 05:23 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-11-2025, 02:22 PM
RE: This AI stuff is SCARY!!! - by bplus - 08-11-2025, 02:33 PM
RE: This AI stuff is SCARY!!! - by bplus - 08-11-2025, 03:58 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-11-2025, 06:24 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-11-2025, 11:11 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-12-2025, 12:36 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-12-2025, 01:32 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 08-12-2025, 02:02 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-12-2025, 02:53 PM
RE: This AI stuff is SCARY!!! - by madscijr - 08-12-2025, 03:24 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-12-2025, 07:19 PM
RE: This AI stuff is SCARY!!! - by madscijr - 08-12-2025, 10:51 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-13-2025, 12:07 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-13-2025, 04:56 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-13-2025, 07:25 PM
RE: This AI stuff is SCARY!!! - by PhilOfPerth - 08-13-2025, 10:26 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-14-2025, 12:05 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-14-2025, 12:08 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-14-2025, 07:58 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-26-2025, 12:11 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-27-2025, 10:41 PM
RE: This AI stuff is SCARY!!! - by OldMoses - 08-28-2025, 12:11 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-28-2025, 02:43 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-28-2025, 03:14 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 08-28-2025, 04:33 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-28-2025, 06:36 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-28-2025, 07:13 PM
RE: This AI stuff is SCARY!!! - by Helium5793 - 08-29-2025, 12:27 PM
RE: This AI stuff is SCARY!!! - by madscijr - 08-30-2025, 12:04 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-30-2025, 12:39 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-30-2025, 05:22 AM
RE: This AI stuff is SCARY!!! - by madscijr - 08-30-2025, 05:34 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-30-2025, 07:06 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 09:07 AM
RE: This AI stuff is SCARY!!! - by bplus - 10-20-2025, 12:09 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 12:45 PM
RE: This AI stuff is SCARY!!! - by bplus - 10-20-2025, 02:23 PM
RE: This AI stuff is SCARY!!! - by Dimster - 10-20-2025, 03:02 PM
RE: This AI stuff is SCARY!!! - by bplus - 10-20-2025, 03:13 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 03:15 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 03:21 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-22-2025, 03:10 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 10-22-2025, 04:10 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-22-2025, 02:45 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-22-2025, 03:55 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-22-2025, 04:30 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 10-22-2025, 04:34 PM
RE: This AI stuff is SCARY!!! - by PhilOfPerth - 10-22-2025, 10:26 PM
RE: This AI stuff is SCARY!!! - by JRace - 10-22-2025, 10:38 PM
RE: This AI stuff is SCARY!!! - by PhilOfPerth - 10-22-2025, 11:15 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-23-2025, 01:50 AM
RE: This AI stuff is SCARY!!! - by bplus - 10-22-2025, 11:40 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-22-2025, 10:37 PM
RE: This AI stuff is SCARY!!! - by bplus - 10-22-2025, 11:33 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-23-2025, 01:03 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-23-2025, 02:15 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-23-2025, 02:35 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-23-2025, 02:55 AM
RE: This AI stuff is SCARY!!! - by dbox - 10-23-2025, 02:20 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-23-2025, 02:57 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-26-2025, 02:08 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-26-2025, 02:44 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-26-2025, 03:17 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-30-2025, 12:12 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-30-2025, 01:03 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-30-2025, 01:30 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 11-20-2025, 03:48 AM
RE: This AI stuff is SCARY!!! - by SpriggsySpriggs - 11-20-2025, 04:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)