2016-11-18

Using python

GUI library : tcl/tk, Ttk, Tix, pyGtk, pyQt, wxPython
Install pyQt5 : pip3 install PyQt5, pip install pyqt5-tools

2016-11-10

Dell Inspiron 1501


2018/03/16 : 將 CPU 由 Sempron 3500+ 更換成 AMD Turion 64 X2 TL60 TMDTL60HAX5CT 90nm, socket S1G1 (638). 安裝 Turion CPU後,  BIOS PowerNow (default=Enable), 必須改為 Disable, 才能使 Debian or other Linux 正常 reboot/shutdown.

安裝作業系統碰到的問題 :

Windows 7 :
- 需要自行安裝 Ricoh SD/MMC Host Controller 驅動程式 (Google : sp36516.exe);  由 Windows 7 自動搜尋也行.
- Read first : Inspiron 1501 – Windows 7 and 8.1 64 Bit – The Unofficial Windows 10 Reinstallation Guide
- Install AMD graphic card driver. Make the following selection:



Debian :
- download stable amd64 netinst.iso
- don't select desktop manager software
- modify /etc/apt/sources.list : (change stable to testing ???), add contrib and non-free
- apt-get update/upgrade/dist-upgrade/reboot
- apt-get install sudo
- solve " xxx..x not in the sudoers file" : $ sudo adduser cliff sudo
- apt-get install net-tools
- apt-get install synaptic gksu
- apt-get install policykit-1-gnome (D-BUS related) : solve -- "Can't launch Synaptic from drop-down menu"
- apt-get install firmware-b43-installer (僅在 stable version, 才存在???): Broadcom 4311 wireless driver
- apt-get install firmware-linux-nonfree : ATI Radeon driver
- apt-get install xfce4/xfce4-goodies/task-xfce-desktop/wireless-tools/wicd/network-manager


Debian 9.4 booting ERROR: (畢竟是不再提供BIOS更新的老機器 , 搭配一直在進化的 Linux kernel, 出現一些 warnings 在所難免, 尤其是 ACPI - Advanced Configuration and Power Interface功能;  能用就好, 不必強求; )

--- Spectre V2 mitigation: LFENCE not serializing. Switching to generic retpoline

--- ..MP-BIOS bug: 8254 timer not connecter to IO-APIC
------ That laptop has an early (AMD) ATI Xpress Radeon 1150 256MB HyperMemory (Integrated graphics) GPU... The default video on the install and first boot does not always do well recognizing Radeon or Nvideo without helping it/pointing it in the right direction. Before you can install the OS and intall / configure a graphics driver.

On the boot, add Code:
radeon.modeset=0 noapic
to the end of the Linux boot line as a boot option.

Side effects: The radeon.modeset=0 diables Kernel Mode Setting (KMS) for the hardware. In other words, this option tells linux not to try activating and using the incompatible hardware, which is likely the source of your problems.

When it is used, your computer wikk still be functional, but without the benifits of hardware accelecration provided by the graphics card.

--- ACPI Exception: Could not find/resolve named package element: Z00C (20170728/dspkginit-381)

--- ACPI Error: Needed type [Reference], found [Device] ffff8d894c53abe0 (2017/0728/exresop-103)

--- ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for [OpcodeName unavailable] (20170728/dswexec-461)

--- ACPI Error: Method parse/execution failed \_SB.PCI0._OSC, AE_AML_OPERAND_TYPE (20170728/psparse-550)

--- ata1: softreset failed (device not ready)
------ possible solution :
------ 1. CONFIG_SATA_PMP=n
------ 2. 不理, Kernel 已自行有 work around solution
------ 3. grub.cfg add all_generic_ide option

--- dell_smm_hwmon: unable to get SMM DELL signature

2016-11-02

Windows 10 wont sleep automatically

Quote Originally Posted by Gerbert View Post
Here is what that is showing right now:

C:\WINDOWS\system32> powercfg -requests
DISPLAY:
None.
SYSTEM:
[DRIVER] \FileSystem\srvnet
An active remote client has recently sent requests to this machine.
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
None.
I bet you have a Homegroup set up. If you choose you can easily set an exclusion for what is preventing sleep. But be aware the computer will sleep even if your other computers are communicating with it so if that is important don't set the exclusion.

Again at the elevated Command Prompt enter: 

powercfg -requestsoverride DRIVER "srvnet" SYSTEM (make sure to use the quotes around srvnet)

To be double sure you could also enter:

powercfg -requestsoverride DRIVER "\FileSystem\srvnet" SYSTEM (again make sure to use the quotes) but I think the first command is really all you need.