回复 #10 dxqwx1 的帖子
我以前写过一个KDM补丁的能支持Sleep 原帖由 wkt 于 2008-7-24 09:11 发表 http://www.linuxfans.org/bbs/images/common/back.gif
---------livecd是在cd版本安装后直接制作的,完全和cd安装后的内容一样,root的密码是magicfans,有一个普通用户,名字是 magiclinux,密码是 linuxfans。由于不知道怎么才在启动的时候更新 x 的配置 ...
最新的xorg?你指Xorg -configure?不知道为什么,这个执行会导致死机。 原帖由 stdio 于 2008-7-24 13:01 发表 http://www.linuxfans.org/bbs/images/common/back.gif
我以前写过一个KDM补丁的
能支持Sleep
小w那个补丁还在?放出来看看,另外你以前打包的那个mac主题还有备份?再传一次啊,找不到了。 俺的rt73芯片的无线网卡还是不能驱动起来,问题和b2相同 原帖由 redlotus 于 2008-7-24 18:15 发表 http://www.linuxfans.org/bbs/images/common/back.gif
小w那个补丁还在?放出来看看,另外你以前打包的那个mac主题还有备份?再传一次啊,找不到了。
应该都在MGC 的服务器上吧? 密码什么的我都忘记了
哪天我在传一个,你先用magiconf 里面的tuf或者 kpowersave 试试
MAC 主题应该很好弄的啊
去google 搜搜
PS: 老停电(一天只有三个小时有电),郁闷呢 kdebase-3.4.2-ksm-sleep.patch
diff -Nur kdebase-3.4.2/ksmserver/shutdown.cpp kdebase-3.4.2/ksmserver.orig/shutdown.cpp
--- kdebase-3.4.2/ksmserver/shutdown.cpp 2005-05-23 20:13:16.000000000 +0800
+++ kdebase-3.4.2/ksmserver.orig/shutdown.cpp 2006-08-01 11:00:02.000000000 +0800
@@ -80,6 +80,11 @@
// this is a WType_Popup on purpose. Do not change that! Not
// having a popup here has severe side effects.
{
+ /*
+ *Modifyed by lovewilliam<[email protected]>
+ */
+ Get_ACPI_State();
+
QVBoxLayout* vbox = new QVBoxLayout( this );
QFrame* frame = new QFrame( this );
frame->setFrameStyle( QFrame::StyledPanel | QFrame::Raised );
@@ -137,6 +142,17 @@
connect(btnReboot, SIGNAL(clicked()), SLOT(slotReboot()));
if ( sdtype == KApplication::ShutdownTypeReboot )
btnReboot->setFocus();
+
+ /*
+ *modifyed by lovewilliam<[email protected]>
+ */
+ KSMDelayedPushButton *btnSleep = new KSMDelayedPushButton( KGuiItem( i18n("&Sleep"), "sleep"), frame );
+ if(SLEEP_SIGN.isNull()){
+ btnSleep->hide();
+ }
+ btnSleep->setFont( btnFont );
+ buttonlay->addWidget( btnSleep );
+ connect(btnSleep, SIGNAL(clicked()), SLOT(slotSleep()));
int def, cur;
if ( DM().bootOptions( rebootOptions, def, cur ) ) {
@@ -202,6 +218,21 @@
accept();
}
+/*
+ *Modifyed by lovewilliam<[email protected]>
+ */
+
+void KSMShutdownDlg::slotSleep()
+{
+ QString cmd;
+ cmd += "echo -n ";
+ cmd += SLEEP_SIGN;
+ cmd += ">>/sys/power/state";
+// system((char)"echo -n "+ SLEEP_SIGN.latin1() +">>/sys/power/state");
+ system(cmd.latin1());
+ accept();
+}
+
bool KSMShutdownDlg::confirmShutdown( bool maysd, KApplication::ShutdownType& sdtype, QString& bootOption )
{
@@ -225,6 +256,31 @@
kapp->disableStyles();
return result;
}
+/*
+ *Modifyed by lovewilliam <[email protected]>
+ */
+
+void KSMShutdownDlg::Get_ACPI_State(){
+ QFile ACPI_SLEEP_INFO("/sys/power/state");
+ if ( ACPI_SLEEP_INFO.open( IO_ReadOnly )) {
+ ACPI_SLEEP_INFO.readLine ( SLEEP_SIGN , 255 ) ;
+ QStringList ACPI_SIGN;
+ ACPI_SIGN = QStringList::split( " ", SLEEP_SIGN );
+ SLEEP_SIGN = *ACPI_SIGN.begin();
+
+ //Debug!
+ kdDebug()<<"ACPI SLEEP SIGN:"<<SLEEP_SIGN<<endl;
+
+ ACPI_SLEEP_INFO.close();
+ }else{
+ SLEEP_SIGN = "";
+ //btnSleep->hide();
+ kdDebug()<<"Error while reading /sys/power/state"<<endl;
+ }
+}
+
+
+
KSMDelayedPushButton::KSMDelayedPushButton( const KGuiItem &item,
QWidget *parent,
diff -Nur kdebase-3.4.2/ksmserver/shutdown.h kdebase-3.4.2/ksmserver.orig/shutdown.h
--- kdebase-3.4.2/ksmserver/shutdown.h 2005-05-23 20:13:16.000000000 +0800
+++ kdebase-3.4.2/ksmserver.orig/shutdown.h 2006-08-01 10:36:17.000000000 +0800
@@ -9,6 +9,11 @@
#include <qpixmap.h>
#include <qdialog.h>
+/*
+ *Modifyed by lovewilliam <[email protected]>
+ */
+#include <qfile.h>
+
#include <kpushbutton.h>
class QPushButton;
class QVButtonGroup;
@@ -48,11 +53,20 @@
public:
static bool confirmShutdown( bool maysd, KApplication::ShutdownType& sdtype, QString& bopt );
+/*
+ *Modifyed by lovewilliam <[email protected]>
+ */
+ void Get_ACPI_State();
+
public slots:
void slotLogout();
void slotHalt();
void slotReboot();
void slotReboot(int);
+ /*
+ *modifyed by lovewilliam<[email protected]>
+ */
+ void slotSleep();
protected:
~KSMShutdownDlg() {};
@@ -60,9 +74,15 @@
private:
KSMShutdownDlg( QWidget* parent, bool maysd, KApplication::ShutdownType sdtype );
KApplication::ShutdownType m_shutdownType;
+ /*
+ *modifyed by lovewilliam<[email protected]>
+ */
+ //KSMDelayedPushButton *btnSleep;
+
QString m_bootOption;
QPopupMenu *targets;
QStringList rebootOptions;
+ QString SLEEP_SIGN;
};
class KSMDelayedPushButton : public KPushButton
这个是kde 3.4.2的patch 你自己改以下可以手动patch 一下可以用到当前版本的kde 上 原帖由 sejishikong 于 2008-7-24 15:39 发表 http://218.56.161.13/bbs/images/common/back.gif
最新的xorg?你指Xorg -configure?不知道为什么,这个执行会导致死机。
看看下面debian sid 的xorg
/etc/X11/xorg.conf我也不用指定是via或vesa
如果我上vmware,/etc/X11/xorg.conf会自动的变
prayaya@prayaya:~
-0-$ lspci
00:00.0 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. PT890 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 (rev 78)
01:00.0 VGA compatible controller: VIA Technologies, Inc. UniChrome Pro IGP (rev 01)
prayaya@prayaya:~
-0-$ X -version
X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.2-2)
Current Operating System: Linux prayaya 2.6.25-2-686-bigmem #1 SMP Fri Jul 18 18:30:55 UTC 2008 i686
Build Date: 18 July 200811:09:10AM
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
prayaya@prayaya:~
-0-$ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0"Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/etc/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load"glx"
Load"record"
Load"dri"
Load"extmod"
Load"xtrap"
Load"dbe"
Load"GLcore"
EndSection
Section "InputDevice"
Identifier"Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier"Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### : arg optional
#Option "PrintVGARegs" # [<bool>]
#Option "PrintTVRegs" # [<bool>]
#Option "I2CScan" # [<bool>]
#Option "VBEModes" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "ExaNoComposite" # [<bool>]
#Option "ExaScratchSize" # <i>
#Option "SWCursor" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoRAM" # <i>
#Option "ActiveDevice" # [<str>]
#Option "BusWidth" # [<str>]
#Option "Center" # [<bool>]
#Option "PanelSize" # [<str>]
#Option "ForcePanel" # [<bool>]
#Option "TVDotCrawl" # [<bool>]
#Option "TVDeflicker" # <i>
#Option "TVType" # [<str>]
#Option "TVOutput" # [<str>]
#Option "DisableVQ" # [<bool>]
#Option "DisableIRQ" # [<bool>]
#Option "EnableAGPDMA" # [<bool>]
#Option "NoAGPFor2D" # [<bool>]
#Option "NoXVDMA" # [<bool>]
#Option "VbeSaveRestore" # [<bool>]
#Option "DisableXvBWCheck" # [<bool>]
#Option "MaxDRIMem" # <i>
#Option "AGPMem" # <i>
Identifier"Card0"
Driver "openchrome"
VendorName"Unknown Vendor"
BoardName "Unknown Board"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection ML 在我的本本上自动改为 nv ,台式机是 ati 的 HD2600 AGP 结果还是 vesa …… 嗯,能识别的会自动变. 刚才想测试一下rc1,没想到装完,连kde都进不去,已经拔了所有设备。ml已经死亡!希望开发组也不要再拿个没有进步的东西欺骗别人,浪费别人时间,厚道点!:twisted: 原帖由 wangzhaohui 于 2008-8-16 21:19 发表 http://www.linuxfans.org/bbs/images/common/back.gif
刚才想测试一下rc1,没想到装完,连kde都进不去,已经拔了所有设备。ml已经死亡!希望开发组也不要再拿个没有进步的东西欺骗别人,浪费别人时间,厚道点!:twisted:
问题会有的,要没有才叫不正常,ML已死不是兄台定义的。 Driver "openchrome"
这个是什么东东呀??!!
openChrome project
- [ 翻译此页 BETA ]
A project for the development of free and open-source software, including drivers, for the VIA UniChrome video chipsets.
www.openchrome.org/ - 2k - 网页快照 - 类似网页
不是VIA的就用不了openChrome了吧??? iwl4965 无线网卡无法驱动,因为 ISO 中无 4965 的 fireware/ucode,建议:这两个包在仓库中也有,可否优先放入 ISO 中? 不有网络就不无法安装这两个包。 ok,因为那是rc1后才加到仓库的. 用apt-get install enlightenment安装的e17可以用吗?我这里出现了错误。按照上面的提示,无论是按F1,还是F2,都会自动退出。
我以前用的E17,是nihui发给我的包。
页:
1
[2]