Quantcast Acer Aspire TimelineX 3820TG mods/tweaks ONLY! - Page 4

+ Reply to Thread
Page 4 of 31 FirstFirst 1234567814 ... LastLast
Results 31 to 40 of 307
  1. #31
    Notebook Deity
    Join Date
    May 2010
    Location
    germany
    Posts
    887
    Rep Power
    11

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    Quote Originally Posted by zsero View Post
    Is there anyone who knows something about disabling/enabling root PCI ports with Devcon and RWEverything? We could write an alternative AMD/Intel Graphics Switcher and just use the official drivers!

    Here is a compare about my PCI devices running on Intel only and AMD only mode:
    Text Compare

    Nando4 answer could be a good starting point, but the shifting of PCI buses makes me confused:
    Acer Laptop with Phoenix BIOS: BIOS MOD Request
    Nando4s guide doesn't work for me.

    I was not able to enable the ATI again.

  2. #32
    Notebook Evangelist
    Join Date
    Sep 2009
    Posts
    371
    Rep Power
    10

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    Quote Originally Posted by Just_a_Nick View Post
    Nando4s guide doesn't work for me.

    I was not able to enable the ATI again.
    Quote Originally Posted by zsero View Post
    Is there anyone who knows something about disabling/enabling root PCI ports with Devcon and RWEverything? We could write an alternative AMD/Intel Graphics Switcher and just use the official drivers!

    Here is a compare about my PCI devices running on Intel only and AMD only mode:
    Text Compare

    Nando4 answer could be a good starting point, but the shifting of PCI buses makes me confused:
    Acer Laptop with Phoenix BIOS: BIOS MOD Request
    it work for me by disable the pci exress root port 45 vie devicemanager.

    BUT it does not saves power !!! it looks like the ati device is still powered.
    3820TG i5@3.2Ghz 4GB HyperX 1333CL7@1200CL6 ATI HD5650@700/900
    Windows7 On Samsung SSD PM830 256Gig

    3820tray --- 3820TG ATI vBios MOD --- 1810t TME MOD --- Acc Sensor Mod

  3. #33
    Notebook Guru
    Join Date
    Oct 2010
    Posts
    72
    Rep Power
    7

    Default

    Quote Originally Posted by inteks View Post
    the fan control in 3820tray is also near ready. soon i post an update.
    for those how like allinone tools

    i made it stepless. user can input a temp/prozent table and 3820tray calulates all values between this steps. i could look like
    50C° 0%
    60C° 10%
    70C° 20%
    80C° 50%
    90C° 100%

    so @55C° it will be 5% ..... and so on

    i like it! it produce very smooth fanspeed changes
    Could you please check one thing with 3820tray. Add following code to you software:
    Code:
            
    while (true) {
                    unsigned char val = YourClass::ReadEC(0x93);
                    if (val != 0x04) {
    // any code to notify: dialog or write to file, whatever
                            LOG_WRITE("Error reading EC, expected 0x04, got=0x%x\n", int(val));
                    }
                    Sleep(9);
            }
    Then run RWEverything with EC opened and 3820tray.
    I have tested this on my system and very often get incorrect value from EC. With RWEverything closed - its all much better.

    @inteks

    O. And one more thing. It seems code you use to read EC is not quite correct:


    Code:
            private static bool WaitEC(ushort iPort, byte bVal) {
                for (int i = 0; i < 300; i++) {
                    var result = ols.ReadIoPortByte(iPort);
                    if (!Convert.ToBoolean(result & bVal)) return true;
                    Thread.Sleep(1);
                }
                return false;
            }
    
            private static bool WaitReadEC() {
                return WaitEC(0x66, 0x1);
            }
    it should be:

    Code:
            private static bool WaitECFull(ushort iPort, byte bVal) {
                for (int i = 0; i < 300; i++) {
                    var result = ols.ReadIoPortByte(iPort);
                    // ! is removed
                    if (Convert.ToBoolean(result & bVal)) return true;
                    //Thread.Sleep(1); //on linux here was udelay(10) - delay for 10microseconds, so under windows even Sleep(1) makes this code work incorrect
                }
                return false;
            }
    
            private static bool WaitReadEC() {
                return WaitECFull(0x66, 0x1);
            }
    Here is the source: http://tracker.coreboot.org/trac/cor.../ec.c?rev=6442

    But even this code fails for me with RWEverything on background

  4. #34
    Notebook Evangelist
    Join Date
    Oct 2009
    Location
    Canada
    Posts
    362
    Rep Power
    10

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    Quote Originally Posted by _InKr_ View Post
    But even this code fails for me with RWEverything on background
    It doesn't fail just with RWEverything running. It also fails with any CPU intensive task in the background. I tested it with Prime95 and your program simply chocked up and kept throwing assertion error. In fact, with Prime95 using 100% of my CPU, the system was still very responsive, but if I had your program open, it seemed to make my system freeze.

    I think the problem is that you poll EC way too often. Have you tried polling it every 1 second instead? I am not sure if you can, but assign a higher priority to the EC polling component? If I remember correctly, by default acerhdf reads temperature from EC every 1.5 second. As for the source code above, I think you can access EC more often on Linux, because you have better control over the hardware.

    If I had source code, I could probably test it
    Last edited by prikolchik; 19th March 2011 at 04:10 PM.
    Asus UX32VD-DH71: i7-3517U 1.9GHz / 10GB DDR3 / 320GB HDD / Nvidia GT 620M 1G / 13.3 IPS FHD / Ubuntu 12.10
    Acer Aspire 3820TG-3022: i5-520M 2.4GHz / 8GB DDR3 / OCZ Vertex 3 120Gb SSD / ATI 5470 512MB / 13.3 WXGA / Ubuntu 10.10
    Windows tax refund. Get $65 for Windows! Linux. Wins.
    If you have a question to ask me, please PM! I do NOT check threads.

  5. #35
    Notebook Guru
    Join Date
    Oct 2010
    Posts
    72
    Rep Power
    7

    Default

    Quote Originally Posted by prikolchik View Post
    It doesn't fail just with RWEverything running. It also fails with any CPU intensive task in the background. I tested it with Prime95 and your program simply chocked up and kept throwing assertion error. In fact, with Prime95 using 100% of my CPU, the system was still very responsive, but if I had your program open, it seemed to make my system freeze.

    I think the problem is that you poll EC way too often. Have you tried polling it every 1 second instead? I am not sure if you can, but assign a higher priority to the EC polling component? If I remember correctly, by default acerhdf reads temperature from EC every 1.5 second. I think you can access EC more often on Linux, because you have better control over the hardware.

    If I had source code, I could probably test it
    Actually, I do poll EC once a second. But you need to understand that it seems proper way to read EC is:
    1. Address = [EC_SC]
    2. Wait EC free
    3. Write 0x80 to [EC_SC]
    4. Wait IBF free
    5. Write Address to [EC_DATA]
    6. Wait IBF free
    7. Wait OBF full
    8. Read Data from [EC_DATA]

    The problem is on stage 7. OBF becomes full just few microseconds after step 5. So even Sleep(1) is not an option here and you forced to constantly read port in cycle and wait until OBF bit is set to true. Of course when CPU is 100% busy system will interrupt your thread leading to odd behavior: Windows user ring is not truly real-time system, so this is main concern when working with EC from here .

    I've attached ECTest sources in next message.

    Sources are attached.
    Attached Files Attached Files

  6. #36
    Notebook Evangelist
    Join Date
    Sep 2009
    Posts
    371
    Rep Power
    10

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    i dont use ReadEC on my code. on the 1810tray version i saw that it not working correct any time so i use the MSR to get CPU temp.
    for ATI temp (to implement GPU Fan control) all my hope goes to Guru3D.com Forums - View Single Post - MSI Afterburner .NET Class Library







    PS:
    here some code (winring0 required)

    Code:
      public static int tjMax;
            public static byte GetCoreTemp(){
            //var tjmax = 105;
                
    
            uint dwEAX = 0, dwEDX = 0;
    
            ols.RdmsrPx(0x19C, ref dwEAX, ref dwEDX, pz1 );
    
            dwEAX = dwEAX & 0xFF0000;
            dwEAX = dwEAX >> 16;
            var core1 =  (byte) (tjMax - dwEAX);
            if (corecount == 1) return core1;
    
    
            dwEAX = 0; dwEDX = 0;
    
            ols.RdmsrPx(0x19C, ref dwEAX, ref dwEDX, pz2);
    
            dwEAX = dwEAX & 0xFF0000;
            dwEAX = dwEAX >> 16;
            var core2 =  (byte) (tjMax - dwEAX);
    
    
            ols.RdmsrPx(0x19C, ref dwEAX, ref dwEDX, pz3);
    
            dwEAX = dwEAX & 0xFF0000;
            dwEAX = dwEAX >> 16;
            var core3 = (byte)(tjMax - dwEAX);
    
            ols.RdmsrPx(0x19C, ref dwEAX, ref dwEDX, pz4);
    
            dwEAX = dwEAX & 0xFF0000;
            dwEAX = dwEAX >> 16;
            var core4 = (byte)(tjMax - dwEAX);
    
                byte coremax = 0;
                if (core1 > coremax) coremax = core1;
                if (core2 > coremax) coremax = core2;
                if (core3 > coremax) coremax = core3;
                if (core4 > coremax) coremax = core4;
                return coremax;
          
    
        }
    3820TG i5@3.2Ghz 4GB HyperX 1333CL7@1200CL6 ATI HD5650@700/900
    Windows7 On Samsung SSD PM830 256Gig

    3820tray --- 3820TG ATI vBios MOD --- 1810t TME MOD --- Acc Sensor Mod

  7. #37
    Notebook Evangelist
    Join Date
    Sep 2009
    Posts
    371
    Rep Power
    10

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    Quote Originally Posted by _InKr_ View Post
    it should be:

    Code:
            private static bool WaitECFull(ushort iPort, byte bVal) {
                for (int i = 0; i < 300; i++) {
                    var result = ols.ReadIoPortByte(iPort);
                    // ! is removed
                    if (Convert.ToBoolean(result & bVal)) return true;
                    //Thread.Sleep(1); //on linux here was udelay(10) - delay for 10microseconds, so under windows even Sleep(1) makes this code work incorrect
                }
                return false;
            }
    
            private static bool WaitReadEC() {
                return WaitECFull(0x66, 0x1);
            }
    Here is the source: ec.c in trunk/src/ec/acpi ? coreboot

    But even this code fails for me with RWEverything on background
    have you tryed this:

    Code:
     private static bool WaitEC(ushort iPort, byte bVal) {
                for (int i = 0; i < 300; i++) {
                    var result = ols.ReadIoPortByte(iPort);
                    if (!Convert.ToBoolean(result & bVal)) return true;
                    var start = DateTime.Now; while((DateTime.Now -start).Ticks < 100){}
                    
                }
                return false;
            }
    3820TG i5@3.2Ghz 4GB HyperX 1333CL7@1200CL6 ATI HD5650@700/900
    Windows7 On Samsung SSD PM830 256Gig

    3820tray --- 3820TG ATI vBios MOD --- 1810t TME MOD --- Acc Sensor Mod

  8. #38
    Banned
    Join Date
    Dec 2008
    Location
    YellowBrickRd.AU
    Posts
    7,931
    Rep Power
    0

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    Quote Originally Posted by inteks View Post
    it work for me by disable the pci exress root port 45 vie devicemanager.

    BUT it does not saves power !!! it looks like the ati device is still powered.
    Disabling pci express port via device manager is required first. Then disable the x16 port via r-w everything or baredit at 0:0.0 54 bit 1=0. Then can do a device manager rescan and the ATI device will be gone. Confirm if there are power savings or not. I'm assuming the ATi device will go into a power savings mode when not on the PCI BUS.

    If it's not power saving then would need to capture a dump of it's pci space (4KB) when it is power saving. Load that into the ATI card after disabling it in Device Manager, then disabling the x16 link.

    I believe that will do the trick. Just needs a nice r-w everything script + batch file to manage it all OR Inteks could consider doing the equivalent steps in 3820TGTray.

  9. #39
    Notebook Guru
    Join Date
    Oct 2010
    Posts
    72
    Rep Power
    7

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    Quote Originally Posted by inteks View Post
    i dont use ReadEC on my code. on the 1810tray version i saw that it not working correct any time so i use the MSR to get CPU temp.
    Do you mean you do not read EC in 3820tray? Only write? Or I misunderstand?

  10. #40
    Notebook Evangelist
    Join Date
    Sep 2009
    Posts
    371
    Rep Power
    10

    Default Re: Acer Aspire TimelineX 3820TG mods/tweaks ONLY!

    Quote Originally Posted by _InKr_ View Post
    Do you mean you do not read EC in 3820tray? Only write? Or I misunderstand?
    yepp. only write.
    3820TG i5@3.2Ghz 4GB HyperX 1333CL7@1200CL6 ATI HD5650@700/900
    Windows7 On Samsung SSD PM830 256Gig

    3820tray --- 3820TG ATI vBios MOD --- 1810t TME MOD --- Acc Sensor Mod

 

 
Page 4 of 31 FirstFirst 1234567814 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 04:03 PM.
Powered by vBulletin® Version 4.2.0
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0