Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| next-version: 1.0 | |
| assembly-versioning-scheme: MajorMinorPatch | |
| assembly-file-versioning-scheme: MajorMinorPatchTag | |
| assembly-informational-format: '{InformationalVersion}' | |
| mode: ContinuousDelivery | |
| increment: Inherit | |
| continuous-delivery-fallback-tag: ci | |
| tag-prefix: '[vV]' | |
| major-version-bump-message: '\+semver:\s?(breaking|major)' | |
| minor-version-bump-message: '\+semver:\s?(feature|minor)' |
| [Unit] | |
| Description=Potentially dangerous fix touchscreen after resume on the XPS 13 9350 | |
| After=suspend.target | |
| [Service] | |
| Type=simple | |
| ExecStart=/home/anthony/path/to/xps-touchscreen-workaround.sh | |
| [Install] | |
| WantedBy=suspend.target |
| #include <dirent.h> | |
| #include <iterator> | |
| #include <cstdlib> | |
| #include <cstring> | |
| #include <sstream> | |
| #include <iostream> | |
| #include <stdlib.h> | |
| #include <string> | |
| #include <sys/stat.h> | |
| #include <syslog.h> |
| if (top != self); | |
| if (top.location != self.location); | |
| if (top.location != location); | |
| if (parent.frames.length > 0); | |
| if (window != top); | |
| if (window.top != window.self); | |
| if (window.self != window.top); | |
| if (parent && parent != window); | |
| if (parent && parent.frames && parent.frames.length > 0); | |
| if ((self.parent && !(self.parent === self)) && (self.parent.frames.length != 0)); |
| ; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
| global start | |
| section .text | |
| start: | |
| push dword msg.len | |
| push dword msg | |
| push dword 1 | |
| mov eax, 4 |
| function _common_section | |
| printf $c1 | |
| printf $argv[1] | |
| printf $c0 | |
| printf ":" | |
| printf $c2 | |
| printf $argv[2] | |
| printf $argv[3] | |
| printf $c0 | |
| printf ", " |
| <!DOCTYPE HTML> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <iframe name="ad_iframe" src="./casper_test.html" /> | |
| </body> | |
| </html> |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |